Auto row height from measured content
When autoRowHeight is enabled, rows are rendered with an estimated height, measured after layout, and the height index is corrected. Measurement runs only for rows that are rendered, and results are cached per row id. This allows content-driven heights without measuring the whole dataset up front.
Planned. This page shows the specification from issue #183. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
20,000 rows with comment text from 1 to 400 words, estimatedRowHeight 40, autoRowHeight on.
Expected behavior
Rows settle to their content height after first render, without visible jumps of the row the user is reading. A poor estimate causes scrollbar thumb adjustments, but the content stays anchored. Editing text re-measures only that row.
Planned API surface
autoRowHeightestimatedRowHeightminRowHeightmaxRowHeightonRowHeightMeasuredinvalidateRowHeight(rowId)Acceptance criteria
- Measured heights are cached by row id and reused after the row is scrolled out and back in. (pending)
- Measurement batches reads before writes in one frame, with no interleaved layout thrash in the documented algorithm. (pending)
- Height corrections above the viewport adjust scrollTop, so the first visible row keeps its on-screen position (see F17). (pending)
- Heights respect minRowHeight and maxRowHeight; content beyond maxRowHeight is clipped with an overflow indicator. (pending)