Skip to content

Commit

Permalink
fixed window resizing issue
Browse files Browse the repository at this point in the history
locked window's min-width and min-height, enabled resizing/fullscreen
  • Loading branch information
Martin Allien committed Jan 18, 2018
1 parent fe78910 commit 5c8ee85
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ function initMainWindow() {

// Create the browser window.
mainWindow = new BrowserWindow({
// on Win, the width of app is few px smaller than it should be.
// this triggers smaller breakpoints
// this size should cause the same layout results on all OSes
// width: on Win, the width of app is few px smaller than it should be
// (this triggers smaller breakpoints) - this size should cause
// the same layout results on all OSes
// minWidth/minHeight: both need to be specified or none will work
width: 1270,
minWidth: 961,
maxWidth: 1920,
minWidth: 1270,
height: 675,
resizable: false,
minHeight: 675,
webPreferences: {
nodeIntegration: false,
sandbox: true,
Expand Down

0 comments on commit 5c8ee85

Please sign in to comment.