Window resizing on macOS makes windows to jump over.
See original GitHub issueBefore the bug report, I would first like to really thank you for the huge work of Proton Native v2! It’s a huge step forwards to removing electron from our app ecosystem 😃
Describe the bug On macOS, resizing windows are glitchy and they always jump to the corner of the screen when the user tries to resize it. The following GIF (which is big, sorry 😦 - about 50 megs) shows it from the Notepad example, but I also have checked the Calculator example & CatApi example and it had similar behavior.
Edit: looks like GitHub doesn’t like Gifs that are too big - the raw link is https://i.imgur.com/Y2n3m1D.gifv
To Reproduce I’m running macOS 10.15.2 (19C57) with node v10.18.1. I think I just used the standard commands to run the application… but for completeness I used the following commands:
$ git clone https://github.com/kusti8/proton-native.git
$ cd proton-native
$ npm i
$ npm link
$ cd examples/Notepad
$ npm link proton-native
$ npm i
$ npm run start
As said, pretty standard 😃
Expected behavior I didn’t expect to the title bar disappear when resizing, or jump to the corner. Pretty self-explanatory.
Screenshots Edit: looks like GitHub doesn’t like Gifs that are too big - the raw link is https://i.imgur.com/Y2n3m1D.gifv
Versions:
- OS: macOS Catalina 10.15.2 (19C57)
- Version: 2.0.0
- Node version: v10.18.1
Additional context
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:14 (7 by maintainers)
Top GitHub Comments
For now, I’ve just excluded Window from changes in position and size due to yoga. I’ll figure out a better solution later.
Yeah I suspect that when a user is resizing, this triggers the resize callback that ends up re rendering and resetting the size, which would reset the position. I’ll look into it more.