Electron-172 - Fixes the pop-out issue

This commit is contained in:
Kiran Niranjan 2017-10-06 11:29:48 +05:30 committed by Kiran Niranjan
parent 860e9f2f73
commit cf3e510204

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));