developerdizzle/react-virtual-list

Is it possible to set containerHeight 100% instead of a fixed size?

Shaked opened this issue · 2 comments

Hey,

Thank you for the plugin.

I am trying to create something like this example: https://shakedos.com/examples/list/pwa.php. I was wondering if it would be possible to set the containerHeight to 100% so that it will automatically fit the size that is required.

Not sure if it's interesting, but that's the reason I am trying to do that: https://stackoverflow.com/questions/45824080/memory-issue-with-long-lists-in-a-web-app

Thank you again,
Shaked

Hi @Shaked, I'll have to look into this and get back to you. Is there an example/codepen you might be able to provide showing your example scenario?

This should "just work," except the resize handler might not get fired, right? As mentioned in #51.