developerdizzle / react-virtual-list

Super simple virtualized list React component
http://developerdizzle.github.io/react-virtual-list/
MIT License
617 stars 71 forks source link

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

Open Shaked opened 7 years ago

Shaked commented 7 years ago

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

developerdizzle commented 6 years ago

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?

mmontag commented 5 years ago

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