Auto-height layout
In auto-height layout, the grid grows to fit all rows with no internal vertical scrollbar, and the page scrolls instead. This suits small datasets embedded in documents and forms, and it requires virtualization to be bypassed safely.
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 5 rows in auto-height layout inside article text.
Expected behavior
The grid height tracks the row count exactly. With pagination on, the height fits the current page. A banner suggests a fixed height or a cap once the row count exceeds a documented threshold.
Planned API surface
layout option ('auto-height')heightchange eventAcceptance criteria
- No vertical scrollbar appears inside the grid in auto-height layout (pending)
- The height updates within one frame after rows are added or removed (pending)
- The horizontal scrollbar remains available when columns overflow (pending)
- Zero rows shows the empty state at a sensible minimum height (pending)
- A dev-mode warning appears above the row threshold, because all rows render (pending)