File tree 3 files changed +16
-8
lines changed
3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import {TPromise} from 'vs/base/common/winjs.base';
9
9
import { KeyMod , KeyCode } from 'vs/base/common/keyCodes' ;
10
10
import { Action , IAction } from 'vs/base/common/actions' ;
11
11
import Event from 'vs/base/common/event' ;
12
- import { Dimension , Builder } from 'vs/base/browser/builder' ;
12
+ import { Builder } from 'vs/base/browser/builder' ;
13
13
import { Registry } from 'vs/platform/platform' ;
14
14
import { Scope } from 'vs/workbench/browser/actionBarRegistry' ;
15
15
import { SyncActionDescriptor } from 'vs/platform/actions/common/actions' ;
@@ -106,13 +106,6 @@ export class PanelPart extends CompositePart<Panel> implements IPanelService {
106
106
public hideActivePanel ( ) : TPromise < void > {
107
107
return this . hideActiveComposite ( ) . then ( composite => void 0 ) ;
108
108
}
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
- }
116
109
}
117
110
118
111
Original file line number Diff line number Diff line change 20
20
visibility : hidden !important ;
21
21
}
22
22
23
+ .monaco-workbench .nopanel > .panel {
24
+ display : none !important ;
25
+ visibility : hidden !important ;
26
+ }
27
+
23
28
.monaco-workbench .viewlet .collapsible .header .title {
24
29
overflow : hidden;
25
30
text-overflow : ellipsis;
Original file line number Diff line number Diff line change @@ -555,6 +555,13 @@ export class Workbench implements IPartService {
555
555
public setPanelHidden ( hidden : boolean , skipLayout ?: boolean ) : void {
556
556
this . panelHidden = hidden ;
557
557
558
+ // Adjust CSS
559
+ if ( hidden ) {
560
+ this . workbench . addClass ( 'nopanel' ) ;
561
+ } else {
562
+ this . workbench . removeClass ( 'nopanel' ) ;
563
+ }
564
+
558
565
// Layout
559
566
if ( ! skipLayout ) {
560
567
this . workbenchLayout . layout ( true ) ;
@@ -713,6 +720,9 @@ export class Workbench implements IPartService {
713
720
if ( this . sideBarHidden ) {
714
721
this . workbench . addClass ( 'nosidebar' ) ;
715
722
}
723
+ if ( this . panelHidden ) {
724
+ this . workbench . addClass ( 'nopanel' ) ;
725
+ }
716
726
717
727
// Apply no-workspace state as CSS class
718
728
if ( ! this . workbenchParams . workspace ) {
You can’t perform that action at this time.
0 commit comments