diff --git a/src/vs/workbench/electron-browser/workbench.ts b/src/vs/workbench/electron-browser/workbench.ts index 1837a4ba43a5f44233843d3a95e2e846d91b3b84..b072bc75f837e2fe76fcaf1a4346f17145d7235d 100644 --- a/src/vs/workbench/electron-browser/workbench.ts +++ b/src/vs/workbench/electron-browser/workbench.ts @@ -1652,7 +1652,7 @@ export class Workbench extends Disposable implements IPartService { let offset = 0; if (this.isVisible(Parts.TITLEBAR_PART)) { if (this.workbenchGrid instanceof Grid) { - offset = this.gridHasView(this.titlebarPartView) ? this.workbenchGrid.getViewSize2(this.titlebarPartView).height : 0; + offset = this.titlebarPart.maximumHeight; } else { offset = this.workbenchGrid.partLayoutInfo.titlebar.height;