React-virtualized: AutoSizer + Table is calculating height: 0

Created on 5 Dec 2016  路  1Comment  路  Source: bvaughn/react-virtualized

If I use AutoSizer with a Table the width is calculated to zero and so nothing but the header is rendered.

Here is the code:
http://codepen.io/sontek/pen/yVvdWw?editors=1010

Most helpful comment

AutoSizer and Table work fine together. (See them in action here.) No different than Grid or List.

In your CodePen, the html, body, and #example elements need to have a height: 100%; style set. Without that, their default height will be 0. AutoSizer does not stretch its parents; it grows to fill them. 馃槃

>All comments

AutoSizer and Table work fine together. (See them in action here.) No different than Grid or List.

In your CodePen, the html, body, and #example elements need to have a height: 100%; style set. Without that, their default height will be 0. AutoSizer does not stretch its parents; it grows to fill them. 馃槃

Was this page helpful?
0 / 5 - 0 ratings