# 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`](https://toolboxjs.com/grid/api/plugin-development/functions/computescrollmapping.md).

```ts
const MAX_ELEMENT_HEIGHT_PX: 33500000
```
