Live reproduction · Edit in StackBlitz
A standalone reproduction for TanStack/virtual#1265, using the published @tanstack/[email protected] package (@tanstack/[email protected]). No application data, mocked observers, or SDK patches are needed.
- Open the preview and wait for Actual bottom gap: 0 px.
- Click Grow previous message by 24 px once.
- The bottom gap becomes 24 px and remains there. The expected gap is 0 px.
- Reload to reset.
The eight-row list uses anchorTo: 'end', directDomUpdates: true, and useFlushSync: false. The final row remains 300 px tall, matching the viewport. Only the preceding row grows. Native CSS scroll anchoring is disabled to isolate the virtualizer's own scroll adjustment.
The displayed values come from the actual scroll element. A separate diagnostics component observes its scroll and size changes without rerendering the list.
npm ci
npm run devThe fixture is adapted from the regression test in the linked PR. This project uses published npm packages, so it demonstrates the bug without first building the TanStack repository.