layout: second vertical sash should be hidden if panel is not visible

fixes #
This commit is contained in:
isidor
2017-12-11 16:33:39 +01:00
parent 7ac1546bf8
commit d8509840ae

View File

@@ -682,10 +682,14 @@ export class WorkbenchLayout implements IVerticalSashLayoutProvider, IHorizontal
return this.workbenchSize.width - this.sidebarWidth - this.activitybarWidth;
}
return this.workbenchSize.width - (this.partService.isVisible(Parts.PANEL_PART) ? this.panelWidth : 0) - (sidebarPosition === Position.RIGHT ? this.sidebarWidth + this.activitybarWidth : 0);
return this.workbenchSize.width - this.panelWidth - (sidebarPosition === Position.RIGHT ? this.sidebarWidth + this.activitybarWidth : 0);
}
public getVerticalSashHeight(sash: Sash): number {
if (sash === this.sashXTwo && !this.partService.isVisible(Parts.PANEL_PART)) {
return 0;
}
return this.sidebarHeight;
}