Skip to content

.isMaximized() always false with transparent:true #25348

Closed

Description

@barkermn01

Preflight Checklist

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

To Reproduce

https://gist.github.com/293ffab750b019714f12d8e1f203e611

Additional Information

#9092 is a closed issue with people still reporting this problems but since it's closed I don't think admins are looking hence creating this issue.

Activity

  1. changed the title [-].isMaximized() always false with transparent:trye[/-] [+].isMaximized() always false with transparent:true[/+] on Sep 7, 2020
  2. arevi commented on Sep 13, 2020

    @arevi

    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.

  3. barkermn01 commented on Sep 15, 2020

    @barkermn01
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions