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
[runtime] Bottom band pools the sub-cell remainder inside the painted capsule strip #3282
Reported on the shipped 0.0.46: the bottom bar looks too tall and leaves a dead strip under its text, so the bar should sit lower/shorter.
Measured headlessly against the installed bitty-terminal.bar (owner window 1570x935, scale 1.6, window.padding = 8 → pad 13, cell 14x30, grid 110x30, remainder 9):
band rect (bottom) 883..=921 height 39 = cell 30 + remainder 9
capsule 1 fill 884..=921 38 rows
capsule 2 fill 884..=921 38 rows
glyph ink 883..=905..906 (identical at remainder 0, 7, 9, 18)
So the extra remainder lands as pure band fill below the glyphs: ~9 px (38 % of the band) in the owner's window. The active capsule (bg = accent, dE 74 against the window background) reads as a tall block; inactive capsules (bg = selection, dE 18.7) hide the same dead strip, which is why only 1* looks oversized. Per-item height differences do not reproduce.
Cause: band_geometry::bottom_row pulls the innermost band's top to container_bottom, giving cell_h + remainder; paint_band_row then uses that full height for both the per-run FillRect and the glyph origin, so the cell row is pinned to the rect's top and the slack hangs below it.
Not fixable in the plugin: BandContent carries no height, and every run shares the band rect.
Acceptance:
With remainder > 0, a bottom band's capsule fills and glyphs occupy exactly one cell row, flush with the bottom inset, and no band fill sits between the glyph descent and the inset.
Paint and hit-testing still agree: every painted band row answers its own band from plugin_band_cell_hit, and one pixel outside is not band chrome.
Exact-multiple surfaces, top bands, column bands, stacked bands and the tooltip anchor keep their current behaviour.
A regression pins the glyph row inside the band (last foreground-coloured row and the glyph origin), not just fill coverage — band_bottom_inset.rs cannot see this today.
Activity