electron-archive/brightray

Synchronize window resizing on Mac

evgenyzinoviev opened this issue · 11 comments

Hi all.

Will adding support of this https://code.google.com/p/chromium/issues/detail?id=531831 to brightray fix this electron/electron#3615?

I'm highly interested in that.

Looks awesome to me! 👍

So can you add it?

I'll add it to my TODO list, no estimate for finish date though.

Thanks!

@zcbenz Is there any update? I'm bothered by this issue recently.

After a closing look, I found actually the original Chromium issue was for their new UI framework on Mac, and after upgrading to Chrome 49, we already have synchronous window resizing in Electron.

Hmm, I can't confirm that it's working (tested on Electron 0.37.2).

I tested it by:

  1. Opening the default app
  2. Navigate to a complex site like amazon.com
  3. Make sure devtools is closed
  4. Resize the window and you can notice sync resizing behavior

Try to open more complex site like youtube.com: https://www.youtube.com/watch?v=D699kZYnWYg&feature=youtu.be

You will also get the same effect when opening Youtube in Chrome. The synchronous window resizing is not working perfectly, the best we can do is keep the same behavior with Chrome.

davej commented

This is working for manual resize using the cursor but still doesn't seem to be working with win.setSize with animate set to true. Tested on 0.37.7 with devtools closed, here's a video.

Let me know if I should create a new issue for this in Electron/Brightray.

Edit: I think this is an Electron bug rather than Brightray, so commented here: electron/electron#4368