bvaughn / react-virtualized

React components for efficiently rendering large lists and tabular data
http://bvaughn.github.io/react-virtualized/
MIT License
26.37k stars 3.06k forks source link

Long cells disappear too early #1181

Closed TiiRiiX closed 3 weeks ago

TiiRiiX commented 6 years ago

I use very long tables. And now I noticed an unpleasant bug. I used MultiGrid and too long cells disappear from the screen before they go beyond its border. I was trying to set up using overscanColumnCount and overscanRowCount but it didn't work.

gif

React-virtualized verison: 9.20.1

bradwoods commented 5 years ago

I found that the default values for overscanColumnCount & overscanIndicesGetter aren't being set. So a grid is only rendering what cells are visible (no overscan). Adding the props with the default values correctly adds overscan elements.

https://codesandbox.io/s/react-virtualized-bug-he2rw

conorgould commented 2 years ago

Thanks @bradwoods - setting those defaults solved the issue for me