Problems with scrolling
I am trying to use List, something like this
<AutoSizer>
{({ height, width }) => (
<List
width={width}
height={height}
rowHeight={48}
rowRenderer={({ index }) => (
<div style={{ height: 48 }} key={index}>Item {index}</div>
)}
rowCount={rows.size}
/>
)}
</AutoSizer>
But instead of smoothly scrolling I get terribly jerky on chrome 61.0.3163.100 https://www.screencast.com/t/I7yRYcu71 on FF 55.0.3 I had empty space at the end https://www.screencast.com/t/JOT1Bswz
Without AutoSizer the problem doesn't disappear.
I'm using the latest versions of react and react-virtualized.
What am I doing wrong? Who faced such a problem?
Same problem here. Introduced with 9.10.0. Downgrading to 9.9.0 fixes the problem.
Same here
PS:
The problem is easily reproducible running https://github.com/bvaughn/react-virtualized-select
Just clone
yarn; yarn start
The first select in example won't work.
I have the same issue, all the controls with scrollToIndex defined seems not work.
All others are fine, see gif

PS: seems like duplicate of https://github.com/bvaughn/react-virtualized-select/issues/75
Unfortunetely, even rolling back to version 9.9.0, and then 9.0.0 and 8.11.4, didn't solve the problem. I used version 7 for a long time and wanted to try the latest version in the new project. On version 7 there is no such problem. I have no ideas.
@yuristrelets That's because you should pass style and key (not index) props to your div. rowHeight should be set via component props.
rowRenderer={({ style, key, index }) => (
<div style={style} key={key}>Item {index}</div>
)}
@TrySound You're right! My fault, I didn't see that it's necessary to pass style ad key. Downgrading to version 9.9.0 and changing rowRenderer solved the problem. Thank you!
I have experienced this problem with v9.10 downgrading to 9.9.0 fixed the issue.
We are seeing the same issue on 9.10.1 as well.
Guys here is the fix https://github.com/bvaughn/react-virtualized/pull/825
Fixed by #825
Will be released momentarily as 9.11
react-virtualized ^9.20.1 still has this issue. Both jerking (after a few scrolling) and blank (after more scrolling) happen After add some dummy style it is resolved. Please reopen this issue or at least mark "style" as a compulsory parameter to avoid this.
env: mac 10.13.4 chrome 67.0.3396 node 9.2.0 yarn 1.7.0
Facing the same issue in the react-virtualized ^9.21.0 also :(
My code's snap like: <List width=800 height=50 rowHeight=600 rowRenderer={ ({ index, style, key, ...rest }) => { return ( <Component key={key} style={style} {...this.props.items[index]} /> ) } } rowCount={items.length} />
Env: Windows10 yarn version v1.12.3 Chrome Version 71.0.3578.98
Please suggest me if I'm missing anything here.
Having a similar issue on 9.21.0. Using WindowScroller and AutoSizer. When the list has no entries scrolling starts to jump once top of the list is at window top.
Screen recording:

Code:
<WindowScroller>
{({height, isScrolling, onChildScroll, scrollTop}) => (
<AutoSizer disableHeight>
{({width}) => (
<List
ref={this.setListRef}
autoHeight
estimatedRowSize={ROW_HEIGHT}
height={height}
isScrolling={isScrolling}
noRowsRenderer={this.noRowsRenderer}
onScroll={onChildScroll}
overscanRowCount={2}
rowCount={productsListRows.length}
rowHeight={this.getRowHeight}
rowRenderer={this.rowRenderer}
scrollTop={scrollTop}
width={width}
/>
)}
</AutoSizer>
)}
I have the same issue as @yuristrelets. [email protected] on Chrome 75.0.3770.100. Any news? Taking into account last 3 unresponded comments.
Same problem
Same here, Chrome Version 76.0.3809.132 (Official Build) (64-bit). Safari works fine.
[email protected]
Adding one more to the pile. I am still seeing this problem in Chrome on 9.21.2.
I used this component and modified it https://github.com/bvaughn/react-virtualized/blob/master/source/Table/defaultRowRenderer.js
Was experiencing this on Chrome with 9.21.2.
Adding style={{width: "100%", height: "100%"}} to the <AutoSizer> component itself has fixed this for me weirdly.
I'm experiencing this issue with the AutoSizer and virtualized table. Sadly style tags haven't helped me and I'm experiencing a very jerky table. Has anyone figured out more about whats going on here?
In case anyone is having this issue, passing the style down to whatever actual div is rendered for the row is what fixed this for me.
I had originally passed down the style property to the row component, but I didn't use that property anywhere in the row. I then passed it down to the base row component which passed the style to the actual div creating the row.
Hope this helps anyone else.