Merge pull request #2138 from atom/window-move-issue

Fix a type error on window.moveTo API.
This commit is contained in:
Cheng Zhao 2015-07-07 11:29:06 +08:00
commit 74603624df

View file

@ -16,9 +16,10 @@ BrowserWindow::_init = ->
options = show: true, width: 800, height: 600
ipc.emit 'ATOM_SHELL_GUEST_WINDOW_MANAGER_WINDOW_OPEN', event, url, frameName, options
# window.move(...)
# window.resizeTo(...)
# window.moveTo(...)
@webContents.on 'move', (event, size) =>
@setSize size
@setBounds size
# Hide the auto-hide menu when webContents is focused.
@webContents.on 'activate', =>