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: persist BrowserView content bounds when calculating layout #32747
fix: persist BrowserView content bounds when calculating layout #32747
Conversation
Reverting change introduced in PR: electron#30510
💖 Thanks for opening this pull request! 💖 We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix. Examples of commit messages with semantic prefixes:
Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
Hi @nornagon, @codebytere! We understand that you are busy, and we really appreciate the hard work you put into this framework. Can we help you out in any way to get this PR moving? We are currently stuck with electron version 13.2.1 and we really want to be able to upgrade to the latest version but this is blocking us. The other option of doing what's been done in this PR, would be to introduce a setting for controlling the behavior when a BrowserView extends outside of a parent BrowserWindow. We don't want to spend time on that without getting some kind of feedback from you in regards to the issue though. All the best! :) |
I'm not sure I understand why the background color and the content bounds are linked? Is there a tldr on that anywhere? Background color shenanigans notwithstanding, this PR seems correct to me. |
When testing the behavior of the rendering with the gist that has been referenced in many of the issues/PR:s related to the background color changes I see the same behavior in rendering independent of this change. Gist: https://gist.github.com/ddramone/712a2fde2757736c9dbf6c3e7e0aa18b. Electron 17.1.2 (using Electron Fiddle): Electron 18.0.0-nightly.20220201 (using the build output of the current branch): |
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.
hmm @andreasdj it appears to have regressed again via Chromium update. Let's fix this for now and look into a better solution for the initial issue.
Perfect @codebytere! I've always found that particular example a bit odd in the way the background color is set for the BrowserView. It seems like a background color set on a page would take precedence so why not just set the background color on the rendered web page directly. If you are missing control over the page you could still do it using Sorry for drifting away, keep up the good work! |
Congrats on merging your first pull request! 🎉🎉🎉 |
Release Notes Persisted
|
I have automatically backported this PR to "17-x-y", please check out #33398 |
I have automatically backported this PR to "18-x-y", please check out #33399 |
…tron#32747) Reverting change introduced in PR: electron#30510 Co-authored-by: Andreas Johansson <aj3621@tobii.com>
…tron#32747) Reverting change introduced in PR: electron#30510 Co-authored-by: Andreas Johansson <aj3621@tobii.com>
Description of Change
Closes: #31513
This PR reverts the change introduced in PR: #30510, to persist the content bounds of a BrowserView when it goes outside it's parent window. For background reference to see why this change was done, see: #29778.
The reason for this PR and why we think it's a reasonable change to do is the following:
Checklist
npm test
passesRelease Notes
Notes: Fixed an issue where BrowserView layout bounds where limited to it's visible bounds.