From e5e3a6837a424b5fa98d1c5dd651dad21ea7f85d Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 5 May 2014 17:12:39 +0800 Subject: [PATCH] Better window height for default_app. --- atom/browser/default_app/default_app.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/atom/browser/default_app/default_app.js b/atom/browser/default_app/default_app.js index acb5a67f9cd6..63e5f996206e 100644 --- a/atom/browser/default_app/default_app.js +++ b/atom/browser/default_app/default_app.js @@ -14,7 +14,13 @@ app.on('window-all-closed', function() { app.on('ready', function() { app.commandLine.appendSwitch('js-flags', '--harmony_collections'); - mainWindow = new BrowserWindow({ width: 800, height: 600 }); + var height = 600; + if (process.platform == 'win32') + height += 60; + else if (process.platform == 'linux') + height += 30; + + mainWindow = new BrowserWindow({ width: 800, height: height }); mainWindow.loadUrl('file://' + __dirname + '/index.html'); if (process.platform == 'darwin') {