Auto row height and row height API
Measures rows to fit wrapped or multi-line content and exposes methods to set or reset row heights at runtime. Content-driven layouts then stay correct after edits, resizes or font loading.
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
A grid with a wrapping 'Comment' column using autoHeight and editable cells.
Expected behavior
Narrowing the column makes affected rows taller. Editing text recalculates the height. Manual setRowHeight overrides apply until resetRowHeights is called.
Planned API surface
autoHeight (column)wrapText (column)api.setRowHeightapi.resetRowHeightsapi.onRowHeightChangedrowHeightMeasureStrategyonRowHeightChangeAcceptance criteria
- Rows grow to fit wrapped content with no clipped text (pending)
- Heights recalculate after edits, column resizes and font load events (pending)
- setRowHeight overrides the computed height until reset (pending)
- Measurement is batched so that one resize causes at most one layout pass per frame (pending)