-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Description
In CellMeasurer.DynamiWidthMultiGrid.example.js the outer Multigrid and the the four inner Grids are accessing the CellMeasurerCache using different indices.
CellMeasurer in CellMeasurer.DynamiWidthMultiGrid.example.js and _columnWidthRightGrid in the Multigrid are accessing the CellMeasurerCache using "global" indices (rowIndex + fixedRowCount and columnIndex + fixedColumnCount) e.g.:
_columnWidthRightGrid ({ index }) {
const { columnCount, fixedColumnCount, columnWidth } = this.props
...
return typeof columnWidth === 'function'
? columnWidth({ index: index + fixedColumnCount })
: columnWidth
}
In the four inner Grids of the Multigrid the defaultCellRangeRenderer is accessed by using "local" indices e.g.:
!deferredMeasurementCache.has(rowIndex, columnIndex)
Instead of checking rowIndex, columnIndex we should use:
in TopRightGrid rowIndex, columnIndex + fixedColumnCount
in BottomLeftGrid rowIndex + fixedRowCount, columnCount
in BottomRightGrid rowIndex + fixedRowCount, columnIndex + fixedColumnCount
Metadata
Metadata
Assignees
Labels
No labels