fixes: dnd issue for mobile view (#7632)

This commit is contained in:
Arpit 2023-10-06 13:34:01 +05:30 committed by GitHub
parent 017782bef3
commit 175ea1b4a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -446,6 +446,13 @@ const EditorComponent = (props) => {
}
};
useEffect(() => {
if (mounted) {
getCanvasWidth();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [currentLayout]);
const computeCanvasContainerHeight = () => {
// 45 = (height of header)
// 85 = (the height of the query panel header when minimised) + (height of header)