From: Cheng Zhao Date: Mon, 6 Jan 2014 10:58:30 +0000 (+0800) Subject: mac: Should set default size when creating window. X-Git-Tag: v0.8.2~5 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=b939232670bde8e11c8e4f2524a59602110941fe;p=electron.git mac: Should set default size when creating window. --- diff --git a/browser/native_window_mac.mm b/browser/native_window_mac.mm index 3d55ecb6..93ad1ff1 100644 --- a/browser/native_window_mac.mm +++ b/browser/native_window_mac.mm @@ -142,7 +142,7 @@ NativeWindowMac::NativeWindowMac(content::WebContents* web_contents, : NativeWindow(web_contents, options), is_kiosk_(false), attention_request_id_(0) { - int width, height; + int width = 800, height = 600; options->GetInteger(switches::kWidth, &width); options->GetInteger(switches::kHeight, &height);