We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8be60a commit 6289704Copy full SHA for 6289704
src/vs/workbench/contrib/debug/browser/debugToolBar.ts
@@ -254,7 +254,7 @@ export class DebugToolBar extends Themable implements IWorkbenchContribution {
254
const positionPercentage = isMainWindow
255
? Number(this.storageService.get(DEBUG_TOOLBAR_POSITION_KEY, StorageScope.PROFILE))
256
: this.auxWindowCoordinates.get(currentWindow)?.x;
257
- x = positionPercentage !== undefined
+ x = positionPercentage !== undefined && !isNaN(positionPercentage)
258
? positionPercentage * currentWindow.innerWidth
259
: (0.5 * currentWindow.innerWidth - 0.5 * widgetWidth);
260
}
0 commit comments