Fixed Bug 69396: Zoom: Fixed wrong height on resize
This commit is contained in:
parent
9ff85666fa
commit
f3ebbe20ea
@ -124,7 +124,9 @@ const Body = ({
|
|||||||
|
|
||||||
const onBodyResize = React.useCallback(() => {
|
const onBodyResize = React.useCallback(() => {
|
||||||
if (bodyRef && bodyRef.current) {
|
if (bodyRef && bodyRef.current) {
|
||||||
setBodyHeight(bodyRef.current.offsetHeight);
|
setTimeout(() => {
|
||||||
|
setBodyHeight(bodyRef.current!.offsetHeight);
|
||||||
|
}, 20);
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user