WarUI

Bounded auto-height (min and max rows)

GRID-A25-F14P1baselinePlanned

A hybrid layout grows with content up to a maximum height or row count, then switches to internal scrolling with virtualization. It avoids both empty boxes and endlessly long pages.

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

Live example

A grid with maxVisibleRows set to 10 and 3 rows.

Expected behavior

The grid grows row by row until it reaches the cap, then shows a scrollbar and virtualizes. Below the minimum, the grid reserves space for the empty state.

Planned API surface

layout option ('auto-height')minVisibleRows optionmaxVisibleRows optionmaxHeight option

Acceptance criteria

  • Height equals the content height when it is between min and max (pending)
  • Above the cap, the height is fixed and virtualization is active (pending)
  • maxHeight and maxVisibleRows conflicts resolve to the smaller value (documented) (pending)
  • Crossing the cap does not reset the scroll position or focus (pending)