Responsive virtualizer
Hi, How can I make my virtualizer responsive ? can't find any example.
Should I check for window size / resize and update the estimateSize ?
Got issue adding margins between virtual items too, I have to add margins to the estimateSize to get them work..
any help would be appreciated, thanks 🙂
2 Replies
rare-sapphire•2y ago
Hi, it's alredy responsive, we are observing the scroll element for change with ResizeObserver
equal-aqua•2y ago
I have also been looking for a way to do this. The only references I have found are all using the autosizer component from the react-virtualized lib which is very much unmaintained.
this is the example in mind: https://codesandbox.io/p/sandbox/react-virtualized-responsive-card-grid-7ry39g