From 175ea1b4a597780b295b402424aaa9ed81fcc1b3 Mon Sep 17 00:00:00 2001 From: Arpit Date: Fri, 6 Oct 2023 13:34:01 +0530 Subject: [PATCH] fixes: dnd issue for mobile view (#7632) --- frontend/src/Editor/EditorFunc.jsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/Editor/EditorFunc.jsx b/frontend/src/Editor/EditorFunc.jsx index fb68366e27..abc5a9c6f2 100644 --- a/frontend/src/Editor/EditorFunc.jsx +++ b/frontend/src/Editor/EditorFunc.jsx @@ -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)