Skip to content

Commit 6289704

Browse files
authored
debug: fix toolbar overlaps traffic lights (microsoft#205127)
Fixes microsoft#204265
1 parent e8be60a commit 6289704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export class DebugToolBar extends Themable implements IWorkbenchContribution {
254254
const positionPercentage = isMainWindow
255255
? Number(this.storageService.get(DEBUG_TOOLBAR_POSITION_KEY, StorageScope.PROFILE))
256256
: this.auxWindowCoordinates.get(currentWindow)?.x;
257-
x = positionPercentage !== undefined
257+
x = positionPercentage !== undefined && !isNaN(positionPercentage)
258258
? positionPercentage * currentWindow.innerWidth
259259
: (0.5 * currentWindow.innerWidth - 0.5 * widgetWidth);
260260
}

0 commit comments

Comments
 (0)