fix: side dock (left/right) pins to top, not vertically centered

This commit is contained in:
Hermes Agent committed 2026-09-10 17:50:26 +02:00
1 parent bb0b01cabc
commit 05bbcdb474
1 file changed
+2 -2
+2 -2
View File
@@ -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