Scroll ownership and viewport state
The core holds scroll state as a logical viewport (first visible row id, offset and horizontal column anchor) rather than raw pixels. The renderer owns the actual scroll container. This makes scroll positions restorable and lets programmatic scrollTo work before rendering.
Planned. This page shows the specification from issue #177. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid with 50,000 rows of variable height and a viewport inspector.
Expected behavior
scrollToRow lands correctly for each alignment. Restore returns to the saved logical position after a data refresh. In external-container mode, the grid reads and writes only the configured container.
Planned API surface
api.getViewportapi.scrollToRowapi.scrollToColumnviewport:changedScrollAlignGridOptions.scrollContainerAcceptance criteria
- viewport:changed is throttled to animation frames (pending)
- scrollToRow called before ready is applied on ready (pending)
- The grid never scrolls window or any ancestor unless it is configured as the scroll container (pending)
- The restore anchor uses the row id, not the pixel offset (pending)