[Bug]: Frameless BrowserView.setAutoResize() is broken in v30.0.1 #42003
Labels
30-x-y
31-x-y
bug 🪲
bug/regression ↩️
A new version of Electron broke something
component/BrowserView
component/WebContentsView
has-repro-gist
Issue can be reproduced with code at https://gist.github.com/
status/confirmed
A maintainer reproduced the bug or agreed with the feature
Preflight Checklist
Electron Version
30.0.1
What operating system are you using?
Windows
Operating System Version
Windows 11
What arch are you using?
x64
Last Known Working Electron version
29.3.1
Expected Behavior
The BrowserView.setAutoResize function should automatically change the content size on the Main window resize.
Actual Behavior
While resizing Electron throws the next exception from the autoResize function:
Testcase Gist URL
https://github.com/MaksimDedov/test-electron
Additional Information
There is no autoResize feature for the WebContentsView. So I had to do a workaround like subscribe on the MainWindow resize event and send bounds for the view. It seems like a workable solution but with less performance I guess.
The text was updated successfully, but these errors were encountered: