Skip to content

Frameless maximize overflow #8728

Closed

Description

@adi-works
  • Electron version: 1.4.15
  • Operating system: Windows 10

Actual behavior

Height is oversized by exactly 8px consistently (taskbar is set to small icons).

Alt

How to reproduce

https://github.com/adi518/electron-frameless-maximize-test

Activity

  1. groundwater commented on Feb 22, 2017

    @groundwater
    Contributor

    Hey @adi518. I'd like to help this issue get prioritized. Can you fill out a few more details about what's going wrong and how exactly to reproduce it?

  2. added
    blocked/need-info ❌
    on Feb 22, 2017
  3. adi-works commented on Feb 22, 2017

    @adi-works
    Author

    All I did is set frame to false and hit maximize to test it. It's easily reproduced in my repo, which also has the devtools enabled.

  4. groundwater commented on Feb 22, 2017

    @groundwater
    Contributor

    Hi @adi518. This is a large repo. Can you provide a minimal reproduction case? Thank you.

  5. adi-works commented on Feb 25, 2017

    @adi-works
    Author

    @groundwater, I made a minimal repro and updated OP.

  6. changed the title [-]Frameless maximize issue[/-] [+]Frameless maximize overflow[/+] on Feb 25, 2017
  7. radencode commented on Feb 25, 2017

    @radencode

    @adi518 @groundwater I am running into the same issue and I still am not able to find a solution for it.

  8. odensc commented on Feb 27, 2017

    @odensc

    This seems to be caused by PR #8404. Reverting that PR (170f2f6) fixes the page getting cut off.

    cc/ @bsclifton

  9. radencode commented on Feb 27, 2017

    @radencode

    @TheSBros does that work for you?

  10. bsclifton commented on Feb 27, 2017

    @bsclifton
    Contributor

    @TheSBros the change in #8404 is needed for > 100% DPI because otherwise the coordinates aren't scaled properly. If reverted, you'll see a white or gray borders (if not at 125%, for sure at 200% DPI)

    I believe the root cause for the issue reported here is captured with #4045 (specifically, a similar issue was reported with #8546 which got merged w/ 4045).

    Can anyone try the demo program on Windows 7? My guess is that the size is calculated correctly there

  11. adi-works commented on Feb 27, 2017

    @adi-works
    Author

    Actually, a friend who happens to run Win7 tried the test the other day and experienced the same issue.

  12. odensc commented on Feb 27, 2017

    @odensc

    @bsclifton I understand what the fix is needed for - but arguably 100% DPI is the most common setup. Is this just blocked on #4045 then?

    I can spin up a W7 VM later, but @adi518 says it still exists on 7.

  13. bsclifton commented on Feb 27, 2017

    @bsclifton
    Contributor

    @TheSBros I don't see any comment by @adi518 about problem existing on Win7. However, I tried it on my VM and confirmed the issue exists
    screen shot 2017-02-27 at 2 01 34 am

  14. adi-works commented on Feb 27, 2017

    @adi-works
    Author

    Yes, it definitely happens with Win7.

  15. radencode commented on Feb 27, 2017

    @radencode

    @bsclifton @adi518 @TheSBros So is there a fix for the oversized window on maximized state? I've been playing around with it for a while and can't find a solution for it.

  16. 25 remaining items

  17. odensc commented on Mar 4, 2017

    @odensc

    @adi518 Have you tried my latest commit in #8808? I can't reproduce this issue with my PR. (I can upload a build if you can't compile?)

  18. adi-works commented on Mar 4, 2017

    @adi-works
    Author

    I think I can build it.

    Edit: Ok, forgot I don't have VSCE on this machine, so that will take some time to setup. Upload a build if you may, thanks.

  19. odensc commented on Mar 4, 2017

    @odensc
  20. adi-works commented on Mar 4, 2017

    @adi-works
    Author

    Sweet, the border is gone! taskbar at top/bottom now appears to work correctly.

  21. adi-works commented on Mar 4, 2017

    @adi-works
    Author

    Oh wait a minute. My app is dark-grey, I now noticed it actually has round corners at the top. Bottom is still rectangular though.

  22. odensc commented on Mar 4, 2017

    @odensc

    @adi518 Yes the rounded edges are a side effect. I am currently trying to figure out how to get rid of them.

  23. adi-works commented on Mar 4, 2017

    @adi-works
    Author

    Haha. Yea, now I recall reading a comment about it in the PR thread.

  24. removed their assignment
    on Mar 31, 2017
  25. Venipa commented on Apr 27, 2021

    @Venipa

    now its overflowing again in full screen if you are using browserviews:
    image
    it works correctly if not fullscreen:
    image

  26. Awendel commented on Oct 17, 2021

    @Awendel

    now its overflowing again in full screen if you are using browserviews: image it works correctly if not fullscreen: image

    Can confirm the exact issue 100%.

    Any fixes for BrowserView?

    Otherwise will have to try to manually adjust

    EDIT: Fixed it by adding event listeners to BrowserWindow for maximize / unmaximize and comparing width height of screen of window to size of browserWindow and then subtracting difference from BrowserView

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