Video-hub-app: Windows 10 maximize, close, reopen position incorrect

Created on 6 May 2020  ยท  5Comments  ยท  Source: whyboris/Video-Hub-App

On Windows 10:

  1. maximize app
  2. close app
  3. open app
  4. observe that the top bar extends above the screen, making the close/maximize/minimize buttons harder to press.

Should fix ๐Ÿ˜… ๐Ÿ’ฆ

good first issue

Most helpful comment

Thank you @martincaron for the fix ๐Ÿ™‡โ€โ™‚๏ธ๐ŸŽ–๐ŸŽ‰ #425

All 5 comments

Tested on Windows 10, but observed a different behavior :

After executing step #1, steps #2 and #3 are not necessary to observe behavior in #4

I'll take a stab at it, hopefully i'm not working on something different.

Disregard the previous comment about a different behavior. I got mixed up. I can reproduce the same behavior.

I think it may be considering the window frame when exporting the bounds to save.

I'm pretty sure everything was working in version 1.0.0 -- so since then, perhaps Electron changed its behavior, or a new version of Windows causes trouble ๐Ÿคทโ€โ™‚๏ธ ... just guesses here -- I've spent 0 time so far looking into the issue ๐Ÿ˜…

I'll take a look if you'd prefer to work on something else ๐Ÿค

Got this working in Windows 10. Looks like it was a combination of two factors :

  • Frameless BrowserWindow
  • Exporting/Saving the bounds on exit included the frame pixels. (Maybe Electron changed the way it exports bounds ๐Ÿคทโ€โ™‚๏ธ)

I'll submit a PR

Thank you @martincaron for the fix ๐Ÿ™‡โ€โ™‚๏ธ๐ŸŽ–๐ŸŽ‰ #425

Was this page helpful?
0 / 5 - 0 ratings

Related issues

68cdrBxM8YdoJ picture 68cdrBxM8YdoJ  ยท  5Comments

cal2195 picture cal2195  ยท  4Comments

cal2195 picture cal2195  ยท  6Comments

Aer20 picture Aer20  ยท  6Comments

whyboris picture whyboris  ยท  3Comments