From 2f651fc9fd465a3d95e1b75052b4271318cf27d3 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 1 Mar 2018 20:50:13 +0100 Subject: [PATCH] launcher: fix height to prevent scrollbar at init --- app/main/electron-window.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/main/electron-window.js b/app/main/electron-window.js index a50360a0..ac5f7c4b 100644 --- a/app/main/electron-window.js +++ b/app/main/electron-window.js @@ -19,6 +19,8 @@ module.exports = function(options={}) { backgroundColor: options.color || bgColor, type: options.type, fullscreen: options.fullscreen, + useContentSize: true, + autoHideMenuBar: true, webPreferences: { nodeIntegration: !!options.node } @@ -54,8 +56,7 @@ module.exports = function(options={}) { window.loadURL(options.address) - - window.setMenuBarVisibility(false) + window.setMenu(null) if (options.shortcuts) {