question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Window resizing on macOS makes windows to jump over.

See original GitHub issue

Before 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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
kusti8commented, Mar 16, 2020

For now, I’ve just excluded Window from changes in position and size due to yoga. I’ll figure out a better solution later.

2reactions
kusti8commented, Jan 20, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

macOS Monterey Automatically Resizes Windows Moved to a ...
As explained on the macOS Monterey features page, windows now automatically resize when they are moved from a Mac's built-in display to a ......
Read more >
macos - Windows jump around when resizing - Ask Different
For me, a temporary fix for this is restarting the Dock. Open Activity Monitor, search for "Dock" and force quit the process.
Read more >
Mac Window resizing tips and tricks. Use keyboard shortcuts ...
In this quick lesson from TheMacU.com we look at different ways to resize windows on a Mac with a few different keyboard shortcuts....
Read more >
Modern macOS can't even resize windows properly - Reddit
Like open the clock app, world clock tab, reduce window size, scroll to the top then resize window again. Scrolling will jump around...
Read more >
How to Resize Your Mac's Windows - Lifewire
Before OS X Lion, you resized a window by either clicking the green circle in the window's upper left corner or by dragging...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found