From efca1f32bae44f09f949308c3a350700e7a74979 Mon Sep 17 00:00:00 2001 From: Muhsin Shah C P Date: Thu, 20 Jan 2022 10:13:21 +0530 Subject: [PATCH] Fixes query panel resizing issue (#1841) --- frontend/src/Editor/Editor.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/Editor/Editor.jsx b/frontend/src/Editor/Editor.jsx index 4a5917303d..55b5c81407 100644 --- a/frontend/src/Editor/Editor.jsx +++ b/frontend/src/Editor/Editor.jsx @@ -149,9 +149,10 @@ class Editor extends React.Component { }; onMouseDown = () => { - this.setState({ - isQueryPaneDragging: true, - }); + this.state.isTopOfQueryPane && + this.setState({ + isQueryPaneDragging: true, + }); }; onMouseUp = () => { @@ -982,7 +983,6 @@ class Editor extends React.Component { height: `calc(100% - ${this.state.queryPaneHeight}%)`, width: !showLeftSidebar ? '85%' : '', left: !showLeftSidebar ? '0' : '', - // transition: 'height 0.3s ease-in-out', cursor: this.state.isQueryPaneDragging || this.state.isTopOfQueryPane ? 'row-resize' : 'default', }} >