Skip to content

Windows: different zoom levels on different monitors fail to restore windows at correct location #115768

@bighammer

Description

@bighammer
  • VSCode Version:1.52.1
  • OS Version: Windows_NT x64 10.0.18363

Steps to Reproduce:
I have extension screens setup:

  • Main screen: laptop resolution 3840x2160 and enlarger text& application size to 200%
  • extension screen 1: ultrawide screen 2516x1080, no enlargerment
  • extension screen 2: nomral wide screen: 1920x1080, no enlargerment

and using FancyZones from PowerToys to manage my screens.
=================================

  1. put vscode in extension screen 1 or 2
  2. Drag vscode window & press shift (shortcut of FancyZones) to put to a target sub-screen
  3. close vs code, reopen it

Vscode window positon will not restore to the position where I closed it. In addtion, the vscode window size seems enlargered to 200%. My guess is vscode restores window size & position based the coordinator of main screen rather then the extension screen.
I am not sure it is vscode's bug or FancyZones messed up OS ( win10) ?

If I just put vscode in main screen or extension screens without using draging it to a subscreen, it works fine.

=============================
I double checked. It seems nothing to do with FancyZones. If I put vscode in the certain postion in extension screen but close to main screen, the problem will happen.

Does this issue occur when all extensions are disabled?: Yes/No
N/A

Metadata

Metadata

Labels

author-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugelectronIssues and items related to ElectronupstreamIssue identified as 'upstream' component related (exists outside of VS Code)upstream-issue-linkedThis is an upstream issue that has been reported upstreamverifiedVerification succeededwindowsVS Code on Windows issuesworkbench-windowWindow management

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions