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

3 messages · Page 1 of 1 (latest)

hoary pivot
#

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.

hoary pivot
#

Yup. Figured that would be the case. My only issue with Autosizer is it's relative lack of active development and whether it's going to remain future proof.

I would also point out that other libs doing similar things (react-virtuoso for example) do handle this out of the box so it would be great to eventually see it in Virtual

plain ermine