Skip to content

Commit

Permalink
used window is always big enough to include scrollbars as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommatheussen committed May 24, 2017
1 parent 9c817d4 commit 0094f28
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0094f28

Please sign in to comment.