8000 [Bug]: WebContentsView does not apply bounds until visible · Issue #43257 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug]: WebContentsView does not apply bounds until visible #43257
Open
@t57ser

Description

@t57ser

Preflight Checklist

Electron Version

31.1.0

What operating system(s) are you using?

Windows

Operating System Version

10.0.19042

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

When creating a WebContentsView and setting the bounds, the html (dom) should reflect those bounds.

Actual Behavior

Creating a WebContentsView and setting bounds will have no effect until it is shown.
This prevents preloading content that relies on the bounds

Testcase Gist URL

https://gist.github.com/t57ser/b4711fff7527d72573af1f89989e9853

Additional Information

In the devtools you can see the bounds of the body, it will apply the correct bounds once the WebContentsView becomes visible

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0