Merge pull request #198 from KiranNiranjan/ELECTRON-172

Electron-172 (Pop-out issue)
This commit is contained in:
Vikas Shashidhar 2017-10-06 13:30:58 +05:30 committed by GitHub
commit 1f7f693fdc

View File

@ -367,6 +367,11 @@ function doCreateMainWindow(initialUrl, initialBounds) {
addWindowKey(newWinKey, browserWin);
// Method that sends bound changes as soon
// as a new window is created
// issue https://perzoinc.atlassian.net/browse/ELECTRON-172
sendChildWinBoundsChange(browserWin);
// throttle changes so we don't flood client.
let throttledBoundsChange = throttle(1000,
sendChildWinBoundsChange.bind(null, browserWin));