提交 11c5b938 编写于 作者: S SteVen Batten

better fix for #53459

上级 0bacc92e
......@@ -219,7 +219,7 @@ export class WorkbenchLayout extends Disposable implements IVerticalSashLayoutPr
}
@memoize
private get partLayoutInfo() {
public get partLayoutInfo() {
return {
titlebar: {
height: TITLE_BAR_HEIGHT
......
......@@ -1205,7 +1205,7 @@ export class Workbench extends Disposable implements IPartService {
getTitleBarOffset(): number {
let offset = 0;
if (this.isVisible(Parts.TITLEBAR_PART)) {
offset = this.getContainer(Parts.TITLEBAR_PART).getBoundingClientRect().height;
offset = this.workbenchLayout.partLayoutInfo.titlebar.height;
}
return offset;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册