You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: BrowserView content bounds are incorrectly resized #31513
The change was introduced between electron versions 13.2.1 and 13.2.2 (which can be tested using the fiddle). It's likely due to the change included inside the PR: #30540
Our use case is that we have a virtual keyboard and logic to shift a browser view position to fit focused elements inside the visible area when the keyboard is opened. We are shifting the brower view by setting a negative y-position for the bounds, as seen in the provided fiddle.
The new behavior with a resized viewport will affect the sizing and positioning of elements inside the viewport.
@codebytere , do you have any feedback regarding this issue? I wonder if we could do anything to help out with investigating the issue described in #29778 which introduced the breaking change to see if there could be alternative ways of solving that transparency issue.
@weifeiyue, if the issue was resolved for you by resizing the bounds of the BrowserView to fit inside the parent window, then it seems like you can do that within your own code without relying on the electron resizing the view (which seems like a drastic way of fixing the issue).
We have tested to download the electron source code and then build it using the electron build tools and can confirm that the change inside the PR: #30540 is causing the issue.
This was tested by building the code from the main branch (i.e. the nightly releases and hence electron 18.0.0-nightly.20220201) so this issue will always remain as long as that change is not reverted.
We realize that the change was done to solve another issue but while it's intentions was to solve a transparency issue it's causing side effects I don't think was accounted for.
changed the title [-][Bug]: Negative BrowserView content bounds are clipped[/-][+][Bug]: BrowserView content bounds are incorrectly resized[/+]on Feb 2, 2022
When testing the gist provided in the original issue (#29778) which was the reason for introducing the bug it seems like the original issue still exists.
I tested the gist using electron fiddle with electron 17.0.0 and 16.0.8 and also in a local project with 18.0.0-nightly.20220201 (although with small modifications to add the BrowserViews after the main window was ready to be shown, otherwise the BrowserViews weren't rendered at all).
Can we do anything to make you consider reverting the single line change in the PR: #30540@zcbenz, @codebytere?
Activity
sukhorukov commentedon Oct 27, 2021
Are there any updates on this? This issue is preventing us from updating to the latest electron version.
andreasdj commentedon Nov 15, 2021
@codebytere , do you have any feedback regarding this issue? I wonder if we could do anything to help out with investigating the issue described in #29778 which introduced the breaking change to see if there could be alternative ways of solving that transparency issue.
@weifeiyue, if the issue was resolved for you by resizing the bounds of the BrowserView to fit inside the parent window, then it seems like you can do that within your own code without relying on the electron resizing the view (which seems like a drastic way of fixing the issue).
sukhorukov commentedon Dec 1, 2021
@sofianguy is there any chance that this will be fixed? Would it help if we make a PR with the fix?
andreasdj commentedon Feb 2, 2022
We have tested to download the electron source code and then build it using the electron build tools and can confirm that the change inside the PR: #30540 is causing the issue.
By reverting the change as seen here: https://github.com/electron/electron/pull/30540/files#diff-78a0440b35fe6e728fc0ef26b374d034e0b297634eb11368d19a4b44642f2902L218 and then rebuilding electron, it all work as expected.
This was tested by building the code from the main branch (i.e. the nightly releases and hence electron 18.0.0-nightly.20220201) so this issue will always remain as long as that change is not reverted.
We realize that the change was done to solve another issue but while it's intentions was to solve a transparency issue it's causing side effects I don't think was accounted for.
[-][Bug]: Negative BrowserView content bounds are clipped[/-][+][Bug]: BrowserView content bounds are incorrectly resized[/+]andreasdj commentedon Feb 2, 2022
When testing the gist provided in the original issue (#29778) which was the reason for introducing the bug it seems like the original issue still exists.
I tested the gist using electron fiddle with electron 17.0.0 and 16.0.8 and also in a local project with 18.0.0-nightly.20220201 (although with small modifications to add the BrowserViews after the main window was ready to be shown, otherwise the BrowserViews weren't rendered at all).
Can we do anything to make you consider reverting the single line change in the PR: #30540 @zcbenz, @codebytere?