Hi, I have react-virtualized grid working with some initial data and it is properly virtualizing and only rendering the items that are on screen.
However, when I attempt to zoom in and change the size of the items, it appears that I did zoom in because the size of the inner scroll container has increased appropriately.
But I notice that for some reason all items in the grid are now being generated. All the offscreen items have been rendered as well.
I am using CellMeasurerCache and I call
this.cache.clearAll()
this.grid.recomputeGridSize({columnIndex: 0, rowIndex: 0})
on zoom. I expect to have the cache clear all the widths of the items, and then the grid
should recompute grid size from the start position by generating the items with CellMeasurer, but items that are currently offscreen to the right to be generated until I scroll right.
My guess is that I have something setup with CellMeasurer wrong
Figured out my issue. zoom was interacting with sizing of react container so that calculations were off. Had to step through it to figure out what was going on, but it all makes sense now
Hi, I have react-virtualized grid working with some initial data and it is properly virtualizing and only rendering the items that are on screen.
However, when I attempt to zoom in and change the size of the items, it appears that I did zoom in because the size of the inner scroll container has increased appropriately.
But I notice that for some reason all items in the grid are now being generated. All the offscreen items have been rendered as well.
I am using CellMeasurerCache and I call this.cache.clearAll() this.grid.recomputeGridSize({columnIndex: 0, rowIndex: 0})
on zoom. I expect to have the cache clear all the widths of the items, and then the grid should recompute grid size from the start position by generating the items with CellMeasurer, but items that are currently offscreen to the right to be generated until I scroll right.
My guess is that I have something setup with CellMeasurer wrong
The setup for the grid is rather simple