提交 d8509840 编写于 作者: I isidor

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

fixes #
上级 7ac1546b
...@@ -682,10 +682,14 @@ export class WorkbenchLayout implements IVerticalSashLayoutProvider, IHorizontal ...@@ -682,10 +682,14 @@ export class WorkbenchLayout implements IVerticalSashLayoutProvider, IHorizontal
return this.workbenchSize.width - this.sidebarWidth - this.activitybarWidth; 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 { public getVerticalSashHeight(sash: Sash): number {
if (sash === this.sashXTwo && !this.partService.isVisible(Parts.PANEL_PART)) {
return 0;
}
return this.sidebarHeight; return this.sidebarHeight;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册