electron icon indicating copy to clipboard operation
electron copied to clipboard

[Bug]: `BrowserView` does not use full window when maximized for the first time.

Open FrankenApps opened this issue 1 year ago • 0 comments

Preflight Checklist

Electron Version

19.0.10

What operating system are you using?

Windows

Operating System Version

Windows 10 Pro 21H1

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

The BrowserView would expand just like the window.

Actual Behavior

I have worked around the BrowserView not accounting for the 8px padding that should be applied to a frameless window. But the first time the window is maximized, there still is a small gap (of around 2px) left where the browser view does not cover the window (this happens with and without the aforementioned workaround).

This is the window when it is first beeing maximized: first_maximize

After unmaximizing and then maximizing the window a second time, the BrowserView behaves as expected:

second_maximize

Testcase Gist URL

https://gist.github.com/53a4717f82ce372e5f763e7180a95281

Additional Information

Because of the nature of the issue, you will have to restart the linked fiddle after restoring the window, to be able to reproduce this bug again.

FrankenApps avatar Jul 31 '22 11:07 FrankenApps