Fix a type error on window.moveTo API.

This commit is contained in:
Haojian Wu 2015-07-07 07:22:10 +08:00
parent 8f06bd6f3e
commit 41c1a34b4f

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', =>