-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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: min/max width/height enforcement when aspectRatio
is set
#37306
Conversation
a0ad7e1
to
a5c4c66
Compare
a5c4c66
to
39d4197
Compare
39d4197
to
f189da4
Compare
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.
Change looks good to me, but can we add test(s)?
Release Notes Persisted
|
I have automatically backported this PR to "24-x-y", please check out #37456 |
I have automatically backported this PR to "23-x-y", please check out #37457 |
I have automatically backported this PR to "22-x-y", please check out #37458 |
Description of Change
Closes #37305.
Fixes an issue where
minWidth
/minHeight
andmaxWidth
/maxHeight
would not be enforced if the user set anaspectRatio
on macOS. This was happening because we were explicitly setting the new width and height inwindowWillResize
, which overrides the handling macOS sets on the updated frame whensetContentMinSize
andsetContentMaxSize
were previously called on theNSWindow
.cc @carterbs
Checklist
npm test
passesRelease Notes
Notes: Fixes an issue where
minWidth
/minHeight
andmaxWidth
/maxHeight
would not be enforced if the user set anaspectRatio
on macOS.