Fixed Bug 69396: Zoom: Fixed wrong height on resize

This commit is contained in:
Ilya Oleshko 2024-08-13 16:01:01 +03:00
parent 9ff85666fa
commit f3ebbe20ea

View File

@ -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);
} }
}, []); }, []);