However, the issue is, that the cell contents and the loader component may have different heights, as the content height is dynamic in this instance. So, if the loader height is smaller than the cell contents, the cell contents, when rendered gets cut off unexpectantly.
How can I avoid this? Any help would be greatly appreciated!
What is the expected behavior?
When different content is rendered inside a CellMeasurer, it computes the new height
Which versions of React and react-virtualized, and which browser / OS are affected by this issue? Did this work in previous versions of react-virtualized?
Bug Report
CodeSandBox Example
CodeSandBox FullScreen
What is the current behavior?
I am using the
Grid
component inside aColumnSizer
withAutoSizer
andWindowScroller
inside of anInfiniteLoader
For each
GridItem
I am using aCellMeasurer
andcache
in thecellRenderer
attribute.In the function for
cellRenderer
I am checking forisVisible
and if it's not visible, then render a loader component, wrapped in aCellMeasurer
.If
isVisible
resolves aretrue
then render the cell contents.However, the issue is, that the cell contents and the loader component may have different heights, as the content height is dynamic in this instance. So, if the loader height is smaller than the cell contents, the cell contents, when rendered gets cut off unexpectantly.
How can I avoid this? Any help would be greatly appreciated!
What is the expected behavior?
When different content is rendered inside a CellMeasurer, it computes the new height
Which versions of React and react-virtualized, and which browser / OS are affected by this issue? Did this work in previous versions of react-virtualized?