react window with Autosizer

Viewed 3011
1 Answers

So the problem here is that the parent node, in that case, the <div> element, should have a height
Take a look at this, its working:

<div style={{display: "flex", flexGrow: 1, height: "100%"}}>
    <AutoSizer>
       // your code
    </AutoSizer>
</div>

There is an old issue about this, take a look:
https://github.com/bvaughn/react-virtualized/issues/570

Related