Fix a type error on window.moveTo API.
This commit is contained in:
parent
8f06bd6f3e
commit
41c1a34b4f
1 changed files with 3 additions and 2 deletions
|
@ -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', =>
|
||||
|
|
Loading…
Reference in a new issue