Skip to content
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: compensate for title bar height when setting bounds on BrowserView #35495

Conversation

trop[bot]
Copy link
Contributor

@trop trop bot commented Aug 29, 2022

Backport of #34713

See that PR for details.

Notes: Fixed an issue where part of the BrowserView could be cut off when calling setBounds on some windows.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Aug 29, 2022
@trop trop bot requested a review from codebytere August 29, 2022 15:53
@trop trop bot added 19-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Aug 29, 2022
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Aug 29, 2022
@codebytere codebytere merged commit 2fc4a87 into 19-x-y Aug 31, 2022
@codebytere codebytere deleted the trop/19-x-y-bp-fix-compensate-for-title-bar-height-when-setting-bounds-on-browserview--1661788407082 branch August 31, 2022 08:49
@release-clerk
Copy link

release-clerk bot commented Aug 31, 2022

Release Notes Persisted

Fixed an issue where part of the BrowserView could be cut off when calling setBounds on some windows.

@happyoliver
Copy link

happyoliver commented Jan 11, 2023

For Mac OS, This PR will cause view.setBounds({ width, height, x: 0, y: 0}) vertical position incorrectly with missing title bar's height for frame window. "y" cannot use "0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
19-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.

None yet

2 participants