From db24c17d222ce41d0a30d51a7a2a9927b0e82944 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Fri, 2 Sep 2011 19:38:57 -0700 Subject: [PATCH] we only need the setTimeout on the first window load. must be some magic caching going on somewhere. --- src/editor.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/editor.coffee b/src/editor.coffee index bf9ec5ace..d4d21f7af 100644 --- a/src/editor.coffee +++ b/src/editor.coffee @@ -49,12 +49,13 @@ exports.bindKey = bindKey = (name, shortcut, callback) -> win: null mac: shortcut sender: 'editor' -exports.resize = (e) -> +exports.resize = (timeout=1) -> setTimeout -> editor.focus() editor.resize() - , 1 + , timeout +exports.resize(200) bindKey 'open', 'Command-O', (env, args, request) -> if file = Chrome.openPanel()