mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
handle width resize
This commit is contained in:
parent
55b96bcfcf
commit
f65cabbac1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user