Repository navigation
fix: ensure stable bounds on Windows when toggling setResizable for frameless windows - #51252
Merged
ckerr merged 1 commit intoApr 23, 2026
Conversation
mitchchn
force-pushed
the
mitch/fix-resizable-bounds-frameless-windows
branch
from
April 22, 2026 15:07
9fd5f67 to
b2eb236
Compare
mitchchn
force-pushed
the
mitch/fix-resizable-bounds-frameless-windows
branch
from
April 22, 2026 16:41
b2eb236 to
d934b59
Compare
VerteDinde
approved these changes
Apr 22, 2026
Member
Author
|
This one will need 41 and 42. |
ckerr
approved these changes
Apr 23, 2026
|
Release Notes Persisted
|
Contributor
|
I was unable to backport this PR to "41-x-y" cleanly; |
Contributor
|
I have automatically backported this PR to "42-x-y", please check out #51296 |
Contributor
|
@mitchchn, could you please backport this PR to the 41-x-y branch? |
Contributor
Contributor
3 tasks done
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Fixes #51244.
Refs #50706.
Thick frame frameless windows now get input insets even if they aren't resizable, preventing their size from changing after calls to
setResizability().This additionally is more consistent with how native apps behave: e.g. run
charmap.exeand drag it over a text document. The text cursor changes to the pointer before you reach the edge of the frame, and the window will be focused if you click in that area, even though it can't be resized by dragging.Checklist
npm testpassesRelease Notes
Notes: Fixed a regression on Windows where frameless windows changed their size after calling
setResizable.