You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[0.1.0] runtime: align bottom plugin bands to the window inset without extra remainder gap #3263
The owner reports that bottom plugin chrome (including the bar and devtools) sits noticeably far above the bottom of the Bitty window, leaving a large-looking blank strip below it. The attached screenshot shows the symptom; its physical measurement has not been captured, so it is not used as quantitative evidence.
The current local profile uses window.padding = 8 logical pixels. That inset is expected. The suspected extra gap is caused by mapping bottom bands to the last full terminal row: after subtracting both physical padding insets, the grid extent is floored to an integral number of cell rows, leaving a sub-cell physical remainder at the bottom.
Current geometry model:
bottom gap = physical window padding + ((surface height - 2 * physical padding) mod cell height)
The exact remainder depends on surface extent, cell metrics, and DPI. This formula is a code-derived hypothesis; validate it with a deterministic runtime-level paint probe before changing behavior.
Required outcome
Keep the configured window padding and existing terminal grid/PTY dimensions unchanged.
Align bottom plugin bands consistently to the physical bottom inset, rather than adding the unused sub-cell row remainder to the visible gap.
Keep row-band stacks contiguous and preserve their logical cell budgets.
Make painting, pointer hit-testing, hover/click/scroll routing, tooltip anchoring, and damage/invalidation use one shared physical geometry mapping.
Handle minimum-size / clamped-grid extents explicitly and boundedly; do not paint outside the surface or create a new gap immediately above the band.
Do not change plugin code or install separate per-plugin positioning workarounds.
Verification
Add a headless regression that proves the current tree's bottom-band origin is displaced by the pixel remainder, with exact-multiple, non-multiple, stacked-band, and fractional-DPI cases. Assert paint and interaction geometry agree. Preserve top/left/right band behavior and existing window padding, grid, pane, and PTY sizes.
Track under CarryCtx CTX-1906. This issue is separate from the stale-present issue #3262; both are candidates for the 0.0.46 release, but must have independent regressions and reviews.
Activity