From 41c1a34b4f1777ac1cf68c3d6d467bb18a1d3fff Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Tue, 7 Jul 2015 07:22:10 +0800 Subject: [PATCH] Fix a type error on window.moveTo API. --- atom/browser/api/lib/browser-window.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/atom/browser/api/lib/browser-window.coffee b/atom/browser/api/lib/browser-window.coffee index 4305b29e21f9..d021c3733509 100644 --- a/atom/browser/api/lib/browser-window.coffee +++ b/atom/browser/api/lib/browser-window.coffee @@ -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', =>