TanStackT
TanStack5mo ago
1 reply
living-lavender

Virtualized dynamic height measurement

I have been trying to create a dynamic grid (the number of columns being tied to window width)

The issue is that my rows expand in height due to window resize, but my virtualiser uses a fixed estimate height, making the scroll 'jump' and not smooth.

I have a minimal working example setup here if anyone could help me figure out how to measure the elements.

I think I have tried a few dozen versions and ways to measure the height of the elements but nothing has worked.

https://codesandbox.io/p/devbox/txkp7k
Was this page helpful?