File tree Expand file tree Collapse file tree
src/vs/workbench/browser/parts/panel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import {TPromise} from 'vs/base/common/winjs.base';
99import { KeyMod , KeyCode } from 'vs/base/common/keyCodes' ;
1010import { Action , IAction } from 'vs/base/common/actions' ;
1111import Event from 'vs/base/common/event' ;
12- import { Builder } from 'vs/base/browser/builder' ;
12+ import { Dimension , Builder } from 'vs/base/browser/builder' ;
1313import { Registry } from 'vs/platform/platform' ;
1414import { Scope } from 'vs/workbench/browser/actionBarRegistry' ;
1515import { SyncActionDescriptor } from 'vs/platform/actions/common/actions' ;
@@ -106,6 +106,13 @@ export class PanelPart extends CompositePart<Panel> implements IPanelService {
106106 public hideActivePanel ( ) : TPromise < void > {
107107 return this . hideActiveComposite ( ) . then ( composite => void 0 ) ;
108108 }
109+
110+ layout ( dimension : Dimension ) : Dimension [ ] {
111+ const container = this . getContainer ( ) . getHTMLElement ( ) ;
112+ container . style . display = dimension . height === 0 ? 'none' : 'block' ;
113+
114+ return super . layout ( dimension ) ;
115+ }
109116}
110117
111118
You can’t perform that action at this time.
0 commit comments