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

The readme should reflect that the element that receives virtual.style needs box-sizing: border-box #58

Closed mindnektar closed 7 years ago

mindnektar commented 7 years ago

I've spent some time trying to figure out why my react-virtual-list implementation kept scrolling down after I reached the bottom, seemingly increasing the list's size the further I scrolled. After I dug into how this library works, at some point it became really obvious what the problem was: With each list item vanishing above the viewport, more padding was added to the list, which in turn was added to the list's height because I hadn't set box-sizing: border-box on it previously.

If this requirement was included somewhere in the readme, that might prevent some pain getting started. Otherwise, really good job with this!

mindnektar commented 7 years ago

This is a duplicate of https://github.com/developerdizzle/react-virtual-list/issues/56