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

Keep window maximized when screen resolution changes #90412

Closed
johnendev opened this issue Feb 11, 2020 · 8 comments
Closed

Keep window maximized when screen resolution changes #90412

johnendev opened this issue Feb 11, 2020 · 8 comments
Labels
feature-request Request for new features or functionality workbench-os-integration Native OS integration issues

Comments

@johnendev
Copy link

johnendev commented Feb 11, 2020

Issue Type: Bug

When ever the screen resolution changes, the VS Code window becomes un-maximized.
The window should stay maximized.

This has been an issue for as long as I can remember using VS Code.

VS Code version: Code 1.42.0 (ae08d54, 2020-02-06T10:51:34.058Z)
OS version: Windows_NT x64 10.0.18363

@bpasero bpasero added feature-request Request for new features or functionality workbench-os-integration Native OS integration issues labels Feb 11, 2020
@bpasero bpasero added this to the Backlog Candidates milestone Feb 11, 2020
@vscodebot
Copy link

vscodebot bot commented Feb 11, 2020

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@bpasero bpasero removed their assignment Feb 11, 2020
@bpasero
Copy link
Member

bpasero commented Feb 11, 2020

This sounds like the OS should take care of it. I doubt VSCode should do something specifically.

@johnendev
Copy link
Author

@bpasero VS Code manages it's own window state. There is a setting to always start maximized for example, if the window was maximized last time VS Code was closed.
This issue happens in another electron based app as well, so maybe it's a bug on that end. VS Code knows the window has become un-maximized though as clicking maximize brings it back to the correct state. With the other app, it seems to not be aware of the window state change and you have to click it twice.

A probably related issue is, if you use win+shift+left or win+shift+right to switch between displays it also doesn't maintain the maximized state.

@bpasero
Copy link
Member

bpasero commented Feb 11, 2020

@johnendev would you mind filing an issue against Electron itself if you can e.g. reproduce with their app: https://www.electronjs.org/fiddle

@vscodebot vscodebot bot removed the new release label Feb 11, 2020
@johnendev
Copy link
Author

@bpasero I've tested Electron Fiddle and results are as follows

Electron v6.1.6 (currently used by VS Code)
This issue is present

Electron v6.1.7
This issue is present

Electron 7.0.0
This issue is fixed

Guess that means just wait for VS Code to upgrade to a newer version of Electron. I see it's in progress already: (#90371)

@bpasero
Copy link
Member

bpasero commented Feb 12, 2020

@johnendev interesting, our insider builds already run with Electron 7.
Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/

@johnendev
Copy link
Author

@bpasero ok, tested it on the insiders build and the maximized state is preserved correctly.
There is another issue though, with the rendering and dimensions after the screen resolution has changed. Should I create a new issue for that and close this one, or add details here?

@bpasero
Copy link
Member

bpasero commented Feb 13, 2020

Yes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality workbench-os-integration Native OS integration issues
Projects
None yet
Development

No branches or pull requests

2 participants