From 7c8a676f8a9068a5c7fa95fe4310f50cba2c7b49 Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Tue, 17 Jan 2017 23:36:43 +0900 Subject: [PATCH] Set minimum window size Close #389 --- CHANGELOG.md | 1 + src/main.js | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb05fe4d..64a94cee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ Release date: TBD - Do not place the application window outside of the viewable area anymore, if the display it has been on has been removed - Remove remaining badges after logging out of the team - Fixed an issue where context menu appears many times after reloading +- Fixed an issue where minimum window size is not set #### Windows - Fixed an issue where an unexpected window appears while install/uninstalling diff --git a/src/main.js b/src/main.js index 344cf52f..2a573cc4 100644 --- a/src/main.js +++ b/src/main.js @@ -447,7 +447,12 @@ app.on('ready', () => { if (process.platform === 'linux') { windowOptions.icon = path.resolve(assetsDir, 'appicon.png'); } - Object.assign(windowOptions, {title: app.getName(), show: false}); + Object.assign(windowOptions, { + title: app.getName(), + show: false, + minWidth: 400, + minHeight: 240 + }); mainWindow = new BrowserWindow(windowOptions); mainWindow.once('ready-to-show', () => { mainWindow.show();