react-virtualized icon indicating copy to clipboard operation
react-virtualized copied to clipboard

AutoSizer should use default values if computed values are 0

Open Nokel81 opened this issue 2 years ago • 2 comments

Feature Request

If AutoSizer is used as a child to a component that has overflow: "scroll" it computes values that are 0. This makes sense because there is no upper bound the the size. However, when used with items like VariableSizeList from "react-window" nothing is rendered.

It would be nice if the defaultHeight or defaultWidth props (or maybe some new props) could be used so that in the case where the height is incalculable there is a fallback value

Nokel81 avatar Oct 20 '21 20:10 Nokel81

Did you try 'estimatedRowSize' prop for a List? https://github.com/bvaughn/react-virtualized/blob/master/docs/List.md

alexander-agysov avatar Nov 05 '21 23:11 alexander-agysov

I wasn't using that component so no

Nokel81 avatar Nov 06 '21 12:11 Nokel81