The grid (rendering) ยท console.warn
autoHeight is off above {n} rows; use autoHeight: 'visible' to measure only rendered rows
Printed by The grid (rendering), prefixed [lattice], since 1.0.1.
Warnings reference › autoHeight-limit
- Identifier
autoHeight-limit- Raised by
- The grid (rendering)
- Since
- 1.0.1
What happened
autoHeight measures every row to find its height, which cannot be done for an arbitrarily large row count without measuring the whole dataset. Above the limit the grid degrades to fixed heights, so rows that would have grown to fit their content are clipped instead.
The fix
Use autoHeight: 'visible', which measures only the rendered rows and keeps working at any row count.
The smallest fix
createGrid(el, { autoHeight: 'visible' });
Reference
Covered in full at the API reference.