fix a weird virtualization bug
surely not the last :p
This commit is contained in:
parent
0c2ec4685e
commit
5342968872
1 changed files with 7 additions and 1 deletions
|
@ -484,7 +484,13 @@ function VirtualizedItemCardList({ children }) {
|
|||
scrollTop,
|
||||
registerChild,
|
||||
}) => (
|
||||
<Box ref={registerChild}>
|
||||
<Box
|
||||
// HACK: A mysterious invocation to force internal re-measuring!
|
||||
// Without this, most lists are very broken until the first
|
||||
// window resize event.
|
||||
// https://github.com/bvaughn/react-virtualized/issues/1324
|
||||
ref={(el) => registerChild(el)}
|
||||
>
|
||||
<Grid
|
||||
cellRenderer={({ key, rowIndex, columnIndex, style }) => (
|
||||
<Box
|
||||
|
|
Loading…
Reference in a new issue