-
Notifications
You must be signed in to change notification settings - Fork 15k
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
fix: recalibrate simpleFullscreen when display metrics change #28150
Conversation
Compilation errors on Linux needs fix, LGTM otherwise. Thanks! |
@deepak1556 should be set to go! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with style change.
3c466ed
to
fc798ca
Compare
Release Notes Persisted
|
I was unable to backport this PR to "12-x-y" cleanly; |
I was unable to backport this PR to "11-x-y" cleanly; |
I have automatically backported this PR to "13-x-y", please check out #28216 |
* fix: recalibrate simpleFullscreen when display metrics change * Address review feedback * fix: compilation issues * Address feedback from review
@codebytere has manually backported this PR to "12-x-y", please check out #28869 |
@codebytere has manually backported this PR to "11-x-y", please check out #28870 |
Description of Change
Closes #15494.
Overrides
OnDisplayMetricsChanged
inNativeWindowMac
so that when display metrics change and theBrowserWindow
is insimpleFullscreen
mode, the frame is recalibrated for the new bounds.Tested with https://gist.github.com/bpasero/e4013ea83033a8c231f58f94c0df57c3.
cc @bpasero
Checklist
npm test
passesRelease Notes
Notes: Fixed an issue where windows in
simpleFullscreen
mode were not properly resizing when display metrics changed.