handle width resize

This commit is contained in:
Roland Osborne 2022-05-18 16:10:45 -07:00
parent 55b96bcfcf
commit f65cabbac1

View File

@ -311,7 +311,7 @@ export function VirtualList({ id, items, itemRenderer }) {
}
return (
<ReactResizeDetector handleHeight={true}>
<ReactResizeDetector handleHeight={true} handleWidth={true}>
{({ height }) => {
if (height) {
growCanvasHeight(height * 3);