fix a weird virtualization bug

surely not the last :p
This commit is contained in:
Emi Matchu 2020-12-07 19:18:34 -08:00
parent 0c2ec4685e
commit 5342968872

View file

@ -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