Skip to content

Commit

Permalink
Set a minimium window size in BrowserWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
szTheory committed Feb 3, 2020
1 parent 0c09bcd commit eb0157e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function setupUserModelId() {

const init = function({ win }) {
setupErrorHandling();
setupDevTools();
// setupDevTools();
setupContextMenu();
setupUserModelId();
// Disable auto update for now. Code signing is a pain in
Expand Down
4 changes: 3 additions & 1 deletion src/main/window_setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ const createMainWindow = async function() {
title: app.name,
show: false,
width: DEFAULT_WINDOW_WIDTH,
height: DEFAULT_WINDOW_HEIGHT,
height: DEFAULT_WINDOW_HEIGHT + 25,
minWidth: DEFAULT_WINDOW_WIDTH,
minHeight: DEFAULT_WINDOW_HEIGHT + 25,
webPreferences: { nodeIntegration: true }
});
};
Expand Down

0 comments on commit eb0157e

Please sign in to comment.