fix: account for 38px plugin header in gapB/center.y and vertical dock

This commit is contained in:
Hermes Agent committed 2026-09-09 18:33:16 +02:00
1 parent b57cda16ec
commit 5984df1692
2 files changed
+17 -14

No files matched your search

+4 -4
View File
@@ -313,8 +313,8 @@ function Plugin () {
/>
<Field
name="gapB"
formula="bounds.y + bounds.height − (y + h)"
subst={`${windowInfo.viewport.y} + ${windowInfo.viewport.height} − (${windowInfo.y} + ${Math.round(windowInfo.height / windowInfo.zoom)}) = ${windowInfo.gapB}`}
formula="bounds.y + bounds.height − (y + header + h)"
subst={`${windowInfo.viewport.y} + ${windowInfo.viewport.height} − (${windowInfo.y} + 38 + ${Math.round(windowInfo.height / windowInfo.zoom)}) = ${windowInfo.gapB}`}
value={windowInfo.gapB}
/>
<Field
@@ -325,8 +325,8 @@ function Plugin () {
/>
<Field
name="center.y"
formula="y + h / 2"
subst={`${windowInfo.y} + ${Math.round(windowInfo.height / windowInfo.zoom)} / 2 = ${windowInfo.center.y}`}
formula="y + (header + h) / 2"
subst={`${windowInfo.y} + (38 + ${Math.round(windowInfo.height / windowInfo.zoom)}) / 2 = ${windowInfo.center.y}`}
value={windowInfo.center.y}
/>
</Section>