mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 11:39:17 +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 (
|
return (
|
||||||
<ReactResizeDetector handleHeight={true}>
|
<ReactResizeDetector handleHeight={true} handleWidth={true}>
|
||||||
{({ height }) => {
|
{({ height }) => {
|
||||||
if (height) {
|
if (height) {
|
||||||
growCanvasHeight(height * 3);
|
growCanvasHeight(height * 3);
|
||||||
|
Loading…
Reference in New Issue
Block a user