]> khamidou — GitHub mirrors - electron.git/commitdiff
mac: Should set default size when creating window.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 6 Jan 2014 10:58:30 +0000 (18:58 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 6 Jan 2014 10:58:30 +0000 (18:58 +0800)
browser/native_window_mac.mm

index 3d55ecb65e215cbde0184b301b7ef1bdb9922026..93ad1ff19dce26a919c01f5243907b7a9779693b 100644 (file)
@@ -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);