New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to change zoom level on child windows #20084
Comments
The handler bound to Relevant bit of docs, for reference:
So, if you add a One reason that it's not setting the zoomFactor when you initialize the BrowserWindow is that That being said, with zoomFactor correctly situated, you're still right, it doesn't work at BrowserWindow instantiation. It looks like this is because the native-window-opened webContents is already created by the time you intercept the |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue. |
I want to change the zoom level of child windows from main process, but it does not have any affect. Neither passing zoomFactor to BrowserWindow nor calling setZoomFactor on web contents work. Here is an example code where I try to change zoom factor on child window https://github.com/zarubond/electron-quick-start/tree/child_zoom
Preflight Checklist
Issue Details
5.0.10, 6.0.2
MacOS, Linux, Windows
Never?
Expected Behavior
I should be able to change zoom factor of any window from main process
Actual Behavior
Any attempt to change it is ignored
To Reproduce
Try to change zoom factor of any child window
The text was updated successfully, but these errors were encountered: