Skip to content

fix: aspect ratio when max width/height is set#31955

Merged
jkleinsc merged 3 commits into
14-x-yfrom
trop/14-x-y-bp-fix-aspect-ratio-when-max-width-height-is-set-1637573497979
Nov 24, 2021
Merged

fix: aspect ratio when max width/height is set#31955
jkleinsc merged 3 commits into
14-x-yfrom
trop/14-x-y-bp-fix-aspect-ratio-when-max-width-height-is-set-1637573497979

Conversation

@trop

@trop trop Bot commented Nov 22, 2021

Copy link
Copy Markdown
Contributor

Backport of #29101

See that PR for details.

Notes: fixed respecting aspect ratio when maximum size is set on BrowserWindow

Add the native frame border size to the minimum and maximum size if
the view reports its size as the client size. It allows to enlarge
window to proper values when aspect ratio and max width/height are
set. It also fixes DCHECK which was triggered when user tried to
enlarge window above dimensions set during creation of the
BrowserWindow.
@trop trop Bot requested a review from a team as a code owner November 22, 2021 09:31
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Nov 22, 2021
@trop trop Bot added 14-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Nov 22, 2021
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Nov 22, 2021
@jkleinsc jkleinsc merged commit 5462e95 into 14-x-y Nov 24, 2021
@jkleinsc jkleinsc deleted the trop/14-x-y-bp-fix-aspect-ratio-when-max-width-height-is-set-1637573497979 branch November 24, 2021 22:07
@release-clerk

release-clerk Bot commented Nov 24, 2021

Copy link
Copy Markdown

Release Notes Persisted

fixed respecting aspect ratio when maximum size is set on BrowserWindow

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

Labels

14-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.

2 participants