TanStackT
TanStack3y ago
3 replies
slow-yellow

Is there a way to auto size the scroll area to parent?

Similar to how you might use react-window and AutoSizer to create a virtualized list that fits inside it's parent element, is there a way within Virtual's existing framework to do the same?

As an example, say I have a flex box layout and the height of the container element is set to 100vh. Ideally I would like Virtual to always take up all the vertical space it has and render rows accordingly.
Was this page helpful?