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
1 Reply
fascinating-indigo•2mo ago
Upvotes for this. I have a similar case. A lot of cards with flex box (can be switched for dynamic grid)
Cards has different heights varying from 80-120px usually. Use mean stuck cards one over another