Skip to content

Commit 40d5fd2

Browse files
committed
1 parent acb8bd5 commit 40d5fd2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/vs/workbench/contrib/debug/browser/debugToolBar.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export class DebugToolBar extends Themable implements IWorkbenchContribution {
111111
private updateScheduler: RunOnceScheduler;
112112
private debugToolBarMenu: IMenu;
113113
private disposeOnUpdate: IDisposable | undefined;
114+
private yCoordinate = 0;
114115

115116
private isVisible = false;
116117
private isBuilt = false;
@@ -264,9 +265,10 @@ export class DebugToolBar extends Themable implements IWorkbenchContribution {
264265
}
265266
}
266267

267-
private setYCoordinate(y = 0): void {
268+
private setYCoordinate(y = this.yCoordinate): void {
268269
const titlebarOffset = this.layoutService.getTitleBarOffset();
269270
this.$el.style.top = `${titlebarOffset + y}px`;
271+
this.yCoordinate = y;
270272
}
271273

272274
private setCoordinates(x?: number, y?: number): void {

0 commit comments

Comments
 (0)