File tree Expand file tree Collapse file tree
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 { Dimension , Builder } from 'vs/base/browser/builder' ;
12+ import { 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,13 +106,6 @@ 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- }
116109}
117110
118111
Original file line number Diff line number Diff line change 2020 visibility : hidden !important ;
2121}
2222
23+ .monaco-workbench .nopanel > .panel {
24+ display : none !important ;
25+ visibility : hidden !important ;
26+ }
27+
2328.monaco-workbench .viewlet .collapsible .header .title {
2429 overflow : hidden;
2530 text-overflow : ellipsis;
Original file line number Diff line number Diff line change @@ -555,6 +555,13 @@ export class Workbench implements IPartService {
555555 public setPanelHidden ( hidden : boolean , skipLayout ?: boolean ) : void {
556556 this . panelHidden = hidden ;
557557
558+ // Adjust CSS
559+ if ( hidden ) {
560+ this . workbench . addClass ( 'nopanel' ) ;
561+ } else {
562+ this . workbench . removeClass ( 'nopanel' ) ;
563+ }
564+
558565 // Layout
559566 if ( ! skipLayout ) {
560567 this . workbenchLayout . layout ( true ) ;
@@ -713,6 +720,9 @@ export class Workbench implements IPartService {
713720 if ( this . sideBarHidden ) {
714721 this . workbench . addClass ( 'nosidebar' ) ;
715722 }
723+ if ( this . panelHidden ) {
724+ this . workbench . addClass ( 'nopanel' ) ;
725+ }
716726
717727 // Apply no-workspace state as CSS class
718728 if ( ! this . workbenchParams . workspace ) {
You can’t perform that action at this time.
0 commit comments