File tree 1 file changed +3
-8
lines changed
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 {
101
101
if ( nextProps . location !== this . props . location ) {
102
102
this . props . setPreviousPath ( this . props . location . pathname ) ;
103
103
}
104
-
105
- if ( this . props . ide . consoleIsExpanded !== nextProps . ide . consoleIsExpanded ) {
106
- this . setState ( {
107
- consoleSize : nextProps . ide . consoleIsExpanded ? 150 : 29
108
- } ) ;
109
- }
110
-
111
104
if ( this . props . ide . sidebarIsExpanded !== nextProps . ide . sidebarIsExpanded ) {
112
105
this . setState ( {
113
106
sidebarSize : nextProps . ide . sidebarIsExpanded ? 160 : 20
@@ -337,7 +330,9 @@ class IDEView extends React.Component {
337
330
< SplitPane
338
331
split = "horizontal"
339
332
primary = "second"
340
- size = { this . state . consoleSize }
333
+ size = {
334
+ this . props . ide . consoleIsExpanded ? this . state . consoleSize : 29
335
+ }
341
336
minSize = { 29 }
342
337
onChange = { ( size ) => this . setState ( { consoleSize : size } ) }
343
338
allowResize = { this . props . ide . consoleIsExpanded }
You can’t perform that action at this time.
0 commit comments