Use content size in default_app.
This commit is contained in:
parent
074ac051d2
commit
8d5fbe525d
1 changed files with 5 additions and 7 deletions
|
@ -14,13 +14,11 @@ app.on('window-all-closed', function() {
|
||||||
app.on('ready', function() {
|
app.on('ready', function() {
|
||||||
app.commandLine.appendSwitch('js-flags', '--harmony_collections');
|
app.commandLine.appendSwitch('js-flags', '--harmony_collections');
|
||||||
|
|
||||||
var height = 600;
|
mainWindow = new BrowserWindow({
|
||||||
if (process.platform == 'win32')
|
width: 800,
|
||||||
height += 60;
|
height: 600,
|
||||||
else if (process.platform == 'linux')
|
'use-content-size': true,
|
||||||
height += 30;
|
});
|
||||||
|
|
||||||
mainWindow = new BrowserWindow({ width: 800, height: height });
|
|
||||||
mainWindow.loadUrl('file://' + __dirname + '/index.html');
|
mainWindow.loadUrl('file://' + __dirname + '/index.html');
|
||||||
|
|
||||||
if (process.platform == 'darwin') {
|
if (process.platform == 'darwin') {
|
||||||
|
|
Loading…
Reference in a new issue