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: don't unmaximize on macOS if user set max bounds #33480
Conversation
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.
Looks like this change causes maximize tests to fail.
7afe333
to
02c3a48
Compare
02c3a48
to
90eeeb4
Compare
Release Notes Persisted
|
I was unable to backport this PR to "18-x-y" cleanly; |
I was unable to backport this PR to "17-x-y" cleanly; |
I was unable to backport this PR to "16-x-y" cleanly; |
I was unable to backport this PR to "19-x-y" cleanly; |
The backport process for this PR has been manually initiated - sending your PR to |
The backport process for this PR has been manually initiated - sending your PR to |
The backport process for this PR has been manually initiated - sending your PR to |
I have automatically backported this PR to "19-x-y", please check out #33549 |
I have automatically backported this PR to "18-x-y", please check out #33550 |
I have automatically backported this PR to "17-x-y", please check out #33551 |
I have automatically backported this PR to "16-x-y", please check out #33552 |
Description of Change
Closes #33329.
Fixes an issue where a BrowserWindow would inexplicably become tiny if
BrowserWindow.unmaximize()
was called when the last set bounds were the size of the screen.Per docs during
zoom:
:However, in classic Apple fashion, this is not the case in practice, and the frame inexplicably becomes very tiny. We should prevent zoom from being called if the window is being unmaximized and its unmaximized window bounds are themselves functionally maximized.
Checklist
npm test
passesRelease Notes
Notes: Fixed an issue where the the window bounds would incorrectly change if
BrowserWindow.unmaximize
was called on a window whose user bounds were maximized.