File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -101,13 +101,6 @@ class IDEView extends React.Component {
101101 if ( nextProps . location !== this . props . location ) {
102102 this . props . setPreviousPath ( this . props . location . pathname ) ;
103103 }
104-
105- if ( this . props . ide . consoleIsExpanded !== nextProps . ide . consoleIsExpanded ) {
106- this . setState ( {
107- consoleSize : nextProps . ide . consoleIsExpanded ? 150 : 29
108- } ) ;
109- }
110-
111104 if ( this . props . ide . sidebarIsExpanded !== nextProps . ide . sidebarIsExpanded ) {
112105 this . setState ( {
113106 sidebarSize : nextProps . ide . sidebarIsExpanded ? 160 : 20
@@ -337,7 +330,9 @@ class IDEView extends React.Component {
337330 < SplitPane
338331 split = "horizontal"
339332 primary = "second"
340- size = { this . state . consoleSize }
333+ size = {
334+ this . props . ide . consoleIsExpanded ? this . state . consoleSize : 29
335+ }
341336 minSize = { 29 }
342337 onChange = { ( size ) => this . setState ( { consoleSize : size } ) }
343338 allowResize = { this . props . ide . consoleIsExpanded }
You can’t perform that action at this time.
0 commit comments