From 0094f286b0475124765a46c87751298ad5693c04 Mon Sep 17 00:00:00 2001 From: Tom Matheussen Date: Wed, 24 May 2017 15:03:29 +0200 Subject: [PATCH] used window is always big enough to include scrollbars as well --- main.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 8b4d8e7..8686f47 100644 --- a/main.js +++ b/main.js @@ -11,7 +11,16 @@ let mainWindow function createWindow () { // Create the browser window. - mainWindow = new BrowserWindow({width: 800, height: 600}) + + // Make sure content is always shown on big screen, never collapsed together + // Windows adds the scrollbar inside of the window + width = (process.platform === "darwin" ? 1025 : 1041); + mainWindow = new BrowserWindow({ + width: width, + minWidth: width, + height: 600, + minHeight: 600 + }) // and load the index.html of the app. if (isDev) {