WarUI

Fixed and per-row row heights

GRID-A19-F08P0baselinePlanned

Supports a global fixed row height and a per-row callback that returns a height for each row. Density settings and content-dependent rows can then coexist without breaking virtualization.

Planned. This page shows the specification from issue #199. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

200 product rows at rowHeight 36. Featured rows return 72 from getRowHeight.

Expected behavior

Changing density rescales all rows. Featured rows stay taller when the callback is on. Scrolling stays smooth and the scrollbar size reflects the total height.

Planned API surface

rowHeightgetRowHeightdensityheaderHeightonRowHeightChange

Acceptance criteria

  • Every row renders at the height returned by getRowHeight, or rowHeight as a fallback (pending)
  • The total scroll height equals the sum of all row heights (pending)
  • Density presets map to documented pixel values (pending)
  • Invalid return values (NaN, ≤0) fall back to rowHeight with a warning (pending)