Skip to content

fix: enforce size constraints on window creation on Windows and Linux#50754

Merged
ckerr merged 1 commit into
42-x-yfrom
trop/42-x-y-bp-fix-enforce-size-constraints-on-window-creation-on-windows-and-linux-1775507912208
Apr 6, 2026
Merged

fix: enforce size constraints on window creation on Windows and Linux#50754
ckerr merged 1 commit into
42-x-yfrom
trop/42-x-y-bp-fix-enforce-size-constraints-on-window-creation-on-windows-and-linux-1775507912208

Conversation

@trop
Copy link
Copy Markdown
Contributor

@trop trop Bot commented Apr 6, 2026

Backport of #49906

See that PR for details.

Notes: BrowserWindow now enforces min/max size constraints on window creation, even if they conflict with the requested width and height.

…#49906)

* enforce size constraints on window creation

* set constraints after resizing on init

* restore conditional centering

Co-authored-by: Mitchell Cohen <mitch.cohen@me.com>
@trop trop Bot requested a review from a team April 6, 2026 20:38
@trop trop Bot added 42-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Apr 6, 2026
@ckerr ckerr merged commit 1e43451 into 42-x-y Apr 6, 2026
74 checks passed
@ckerr ckerr deleted the trop/42-x-y-bp-fix-enforce-size-constraints-on-window-creation-on-windows-and-linux-1775507912208 branch April 6, 2026 23:39
@release-clerk
Copy link
Copy Markdown

release-clerk Bot commented Apr 6, 2026

Release Notes Persisted

BrowserWindow now enforces min/max size constraints on window creation, even if they conflict with the requested width and height.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

42-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant