Make atom.setSize synchronous.

This commit is contained in:
Cheng Zhao
2014-07-24 16:27:57 +08:00
parent 5f7f5b5367
commit 39868a2330

View File

@@ -438,7 +438,7 @@ class Atom extends Model
# width - The {Number} of pixels.
# height - The {Number} of pixels.
setSize: (width, height) ->
ipc.send('call-window-method', 'setSize', width, height)
@getCurrentWindow().setSize(width, height)
# Public: Set the position of current window.
#