You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
.isMaximized() always false with transparent:true #25348
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for an issue that matches the one I want to file, without success. I found one but it's been closed since 2017 athough updates are still happening on it either close this issue and reopen that or make this the new issue .isMaximized() always returns false even when window is maximized. #9092
Issue Details
Electron Version:
v10.1.1
Operating System:
Windows 10 18363
Last Known Working Electron version:
unknown
Expected Behavior
calling isMaximized() to respond if the window is maximized
Actual Behavior
isMaximized() always returns false when transparent is set to true on BrowserWindow
This has been an ongoing issue for years, it's possible to track this locally in your application and bypass the "isMaximized" method. Not a good solution, but it works.
This has been an ongoing issue for years, it's possible to track this locally in your application and bypass the "isMaximized" method. Not a good solution, but it works.
this is not a correct method as i have tried it and, because a Maximized window when dragged away from the top of the screen they should normalize to then be moved, so the local state (JS state) will come out of sync with the Operating System / Window state, and unexpected behavior will ensue.
Activity
[-].isMaximized() always false with transparent:trye[/-][+].isMaximized() always false with transparent:true[/+]arevi commentedon Sep 13, 2020
This has been an ongoing issue for years, it's possible to track this locally in your application and bypass the "isMaximized" method. Not a good solution, but it works.
barkermn01 commentedon Sep 15, 2020
this is not a correct method as i have tried it and, because a Maximized window when dragged away from the top of the screen they should normalize to then be moved, so the local state (JS state) will come out of sync with the Operating System / Window state, and unexpected behavior will ensue.