File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,8 @@ function cellRenderer ({
159
159
isVisible, // This cell is visible within the grid (eg it is not an overscanned cell)
160
160
key, // Unique key within array of cells
161
161
rowIndex, // Vertical (row) index of cell
162
- style // Style object to be applied to cell (to position it)
162
+ style // Style object to be applied to cell (to position it);
163
+ // this must be passed through to the rendered cell element
163
164
}) {
164
165
// Grid data is a 2d array in this example...
165
166
const user = list[rowIndex][columnIndex]
@@ -169,7 +170,8 @@ function cellRenderer ({
169
170
? ' ...'
170
171
: < User user= {user} / >
171
172
172
- // Style is important since it specifies how the cell is to be sized and positioned.
173
+ // Style is required since it specifies how the cell is to be sized and positioned,
174
+ // and React Virtualized depends on this sizing/positioning for proper scrolling behavior..
173
175
// By default, the grid component specifies, calculates, and initializes the following style properties:
174
176
// height
175
177
// width
You can’t perform that action at this time.
0 commit comments