Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect window dimensions/rendering after screen resolution change #90650

Closed
johnendev opened this issue Feb 14, 2020 · 4 comments
Closed

Incorrect window dimensions/rendering after screen resolution change #90650

johnendev opened this issue Feb 14, 2020 · 4 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@johnendev
Copy link

Issue Type: Bug

When launched VS Code renders correctly on either display, but after a screen resolution change the dimensions appear to be off by 4px on all sides. VS Code is maximized.

  • Scenario 1: Launch with single screen, 3000x2000 200% scaling, then switch to 1920x1080 100% scaling. This results in Image 1, the window renders slightly off-screen on all sides.
  • Scenario 2: Launch with single screen, 1920x1080 100%, then switch to 3000x2000 200%. This results in Image 2, the window renders 4px in from all sides.
  • Scenario 3: Launch with both displays attached and extended desktop. In this case it doesn't matter which screen VS Code initially on when launched and it renders correctly on the 3000x2000 screen, but on the 1920x1080 screen it always renders as in Image 1.

When not maximized rendering seems to be correct. Un-maximizing and maximizing the window doesn't fix it. Opening another window in the same VS Code instance has the same issue as the initial window.

This issue is new in VS Code since Electron 7 (#90412), but Electron Fiddle doesn't have this issue.

VS Code version: Code - Insiders 1.43.0-insider (1fbaccc, 2020-02-13T06:41:13.411Z)
OS version: Windows_NT x64 10.0.18363

Image 1
to 96-dpi display
Image 2
to hign-dpi display

@ZhenlyChen
Copy link

I have a similar problem.
Display1: 38402160 (250% scaling)
Display2: 2560
1440 (125% scaling)
VS Code displays correctly on the Display1, but incorrectly on the Display2.(As shown in Image1 above).

VS Code version: 1.47.2 (2020-07-15T18:22:06.216Z)
OS version: Windows_NT x64 10.0.18363

@manospasj
Copy link

Duplicate of #85592

@deepak1556
Copy link
Collaborator

/duplicate #85592

@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

5 participants
@deepak1556 @manospasj @ZhenlyChen @johnendev and others