fix: side dock (left/right) pins to top, not vertically centered
This commit is contained in:
1 parent
bb0b01cabc
commit
05bbcdb474
1 file changed
+2
-2
+2
-2
@@ -73,7 +73,7 @@ export default function () {
|
||||
} else if (position === 'top-right' || position === 'center-right' || position === 'bottom-right') {
|
||||
x = b.x + b.width - wCanvas
|
||||
}
|
||||
if (position === 'center-left' || position === 'center' || position === 'center-right') {
|
||||
if (position === 'center') {
|
||||
y = b.y + (b.height - hCanvas) / 2
|
||||
} else if (position === 'bottom-left' || position === 'bottom-center' || position === 'bottom-right') {
|
||||
y = b.y + b.height - hCanvas
|
||||
@@ -95,7 +95,7 @@ export default function () {
|
||||
} else if (position === 'top-right' || position === 'center-right' || position === 'bottom-right') {
|
||||
x = b.x + b.width - wCanvas
|
||||
}
|
||||
if (position === 'center-left' || position === 'center' || position === 'center-right') {
|
||||
if (position === 'center') {
|
||||
y = b.y + (b.height - hCanvas) / 2
|
||||
} else if (position === 'bottom-left' || position === 'bottom-center' || position === 'bottom-right') {
|
||||
y = b.y + b.height - hCanvas
|
||||
|
||||
Reference in new issue
Block a user