From 8d5fbe525ddb5f63d60adbab3dddbd23e16509c9 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 15 May 2014 15:29:53 +0800 Subject: [PATCH] Use content size in default_app. --- atom/browser/default_app/default_app.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/atom/browser/default_app/default_app.js b/atom/browser/default_app/default_app.js index 63e5f99..0c2ddcf 100644 --- a/atom/browser/default_app/default_app.js +++ b/atom/browser/default_app/default_app.js @@ -14,13 +14,11 @@ app.on('window-all-closed', function() { app.on('ready', function() { app.commandLine.appendSwitch('js-flags', '--harmony_collections'); - var height = 600; - if (process.platform == 'win32') - height += 60; - else if (process.platform == 'linux') - height += 30; - - mainWindow = new BrowserWindow({ width: 800, height: height }); + mainWindow = new BrowserWindow({ + width: 800, + height: 600, + 'use-content-size': true, + }); mainWindow.loadUrl('file://' + __dirname + '/index.html'); if (process.platform == 'darwin') { -- 2.7.4