This commit is contained in:
Benjamin Pasero
2017-01-10 16:50:10 +01:00
parent 4060ca0bfd
commit f77e63c8a5

View File

@@ -298,7 +298,7 @@ export class WorkbenchLayout implements IVerticalSashLayoutProvider, IHorizontal
}
public layout(options?: ILayoutOptions): void {
this.workbenchSize = this.getWorkbenchArea();
this.workbenchSize = this.parent.getClientArea();
const isActivityBarHidden = !this.partService.isVisible(Parts.ACTIVITYBAR_PART);
const isTitlebarHidden = !this.partService.isVisible(Parts.TITLEBAR_PART);
@@ -494,15 +494,6 @@ export class WorkbenchLayout implements IVerticalSashLayoutProvider, IHorizontal
this.contextViewService.layout();
}
private getWorkbenchArea(): Dimension {
// Client Area: Parent
let clientArea = this.parent.getClientArea();
// Workbench: Client Area - Margins
return clientArea;
}
public getVerticalSashTop(sash: Sash): number {
return this.titlebarHeight;
}