From 39868a2330a3debb14d7296fe25cb9399aa5b642 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 24 Jul 2014 16:27:57 +0800 Subject: [PATCH] Make atom.setSize synchronous. --- src/atom.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atom.coffee b/src/atom.coffee index 4489d8ba7..625377d06 100644 --- a/src/atom.coffee +++ b/src/atom.coffee @@ -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. #