Skip to content

MAX_ELEMENT_HEIGHT_PX

Since v2.13.0

Maximum spacer element height (px) before browsers cap the rendered height.

Chromium’s hard cap is 2^25 = 33,554,432 px; Firefox/Safari are similar or larger. We pick 33,500,000 — ~54 KB of headroom under Chromium’s cap so that floating-point drift in the fractional mapping math (scrollTop * rMax / sMax) cannot push a computed spacer position past the engine cap and silently truncate.

For datasets where totalRows * rowHeight exceeds this value, the faux-vscroll spacer would silently truncate, making the tail of the dataset unreachable via the native scrollbar / Ctrl+End. The grid switches to fractional scroll mapping above this threshold — see computeScrollMapping.

const MAX_ELEMENT_HEIGHT_PX: 33500000
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt