electron
electron copied to clipboard
[Bug]: `BrowserView` does not use full window when maximized for the first time.
Preflight Checklist
- [X] I have read the Contributing Guidelines for this project.
- [X] I agree to follow the Code of Conduct that this project adheres to.
- [X] I have searched the issue tracker for a bug report that matches the one I want to file, without success.
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:
After unmaximizing and then maximizing the window a second time, the BrowserView
behaves as expected:
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.