File tree Expand file tree Collapse file tree
src/vs/workbench/contrib/debug/browser Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments