Skip to content

[runtime] Bottom band pools the sub-cell remainder inside the painted capsule strip #3282

Closed

Description

@Xuepoo

Priority: P2 | Area: runtime | Labels: fix,P2,area:runtime | Milestone: v0.1.0 | RFC: none | Task: CTX-1918

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

  1. added this to the v0.1.0 milestone on Nov 20, 2026
  2. added
    fix
    area:runtime
    P2
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2area:runtimefix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions