From c8d3a03028a294a31034b107723f93f8221cab9b Mon Sep 17 00:00:00 2001 From: Ajaya1000 Date: Wed, 24 Feb 2021 10:40:23 +0530 Subject: [PATCH] [#1776] console will get back to previous height --- client/modules/IDE/pages/IDEView.jsx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/client/modules/IDE/pages/IDEView.jsx b/client/modules/IDE/pages/IDEView.jsx index 54b38d464a..a3b40d3b72 100644 --- a/client/modules/IDE/pages/IDEView.jsx +++ b/client/modules/IDE/pages/IDEView.jsx @@ -101,13 +101,6 @@ class IDEView extends React.Component { if (nextProps.location !== this.props.location) { this.props.setPreviousPath(this.props.location.pathname); } - - if (this.props.ide.consoleIsExpanded !== nextProps.ide.consoleIsExpanded) { - this.setState({ - consoleSize: nextProps.ide.consoleIsExpanded ? 150 : 29 - }); - } - if (this.props.ide.sidebarIsExpanded !== nextProps.ide.sidebarIsExpanded) { this.setState({ sidebarSize: nextProps.ide.sidebarIsExpanded ? 160 : 20 @@ -337,7 +330,9 @@ class IDEView extends React.Component { this.setState({ consoleSize: size })} allowResize={this.props.ide.consoleIsExpanded}