-
Notifications
You must be signed in to change notification settings - Fork 15k
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
setSize() multiple times stop working after two calls #17217
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines. |
Cannot reproduce on macOS, someone on Windows will have to try verify this |
cc @brenca could you potentially try to repro this? |
Thank you for taking the time to report this issue and helping to make Electron better. The version of Electron you reported this on has been superseded by newer releases. If you're still experiencing this issue in Electron 6.x.y or later, please add a comment specifying the version you're testing with and any other new information that a maintainer trying to reproduce the issue should know. I'm setting the Thanks in advance! Your help is appreciated. |
Thank you for your issue! We haven't gotten a response to our questions in our comment above. With only the information that is currently in the issue, we don't have enough information to take action. I'm going to close this but don't hesitate to reach out if you have or find the answers we need, we'll be happy to reopen the issue. |
I'm sorry, Ik this discussion is closed but I had this problem too and solved it by adding resizable to true then launch the set size then set resizable to false again, IDK why but the set-size function doesn't work more than 2 times unless resizable is set to true.
Hope anyone who reads this understands what I mean :) |
I had this problem too and solved it by adding resizable as a function:
|
Is there a way that you can toggle between three different window sizes in electron? I am trying with setSize but its not working. I am also trying to manipulate the functionality of minimize button but that is also not working. |
This works perfectly! Thank a lot |
Still working ! |
Expected Behavior
Setting BrowserWindow size via
.setSize()
sets size, in disregard of how many times called, when call through aglobalShortcut.register()
.Actual Behavior
Window is set successfully twice, but upon the last time it will not set window size.
To Reproduce/ Code
EDIT: Not sure if helpful:
The text was updated successfully, but these errors were encountered: