mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Better window height for default_app.
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user