summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEmīls <emils@mullvad.net>2018-05-17 14:04:37 +0100
committerEmīls Piņķis <emils@mullvad.net>2018-05-18 11:03:03 +0100
commitd892395b5469c4fe71514adf2862e67291c8b6bb (patch)
tree6ea0cbb5b39da2a9dcf0f8bcf7b78e9de981f73f
parent8e2d50e43e5d7d3ef94d574b174ba87981d64f48 (diff)
downloadmullvadvpn-d892395b5469c4fe71514adf2862e67291c8b6bb.tar.xz
mullvadvpn-d892395b5469c4fe71514adf2862e67291c8b6bb.zip
Add minimum window size to prevent downsizing on Windows when the
taskbar is moved around.
-rw-r--r--app/main.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/main.js b/app/main.js
index 863d8a6f67..5824a23222 100644
--- a/app/main.js
+++ b/app/main.js
@@ -271,7 +271,9 @@ const appDelegate = {
const contentHeight = 568;
const options = {
width: 320,
+ minWidth: 320,
height: contentHeight,
+ minHeight: contentHeight,
resizable: false,
maximizable: false,
fullscreenable: false,
@@ -292,6 +294,7 @@ const appDelegate = {
...options,
// 12 is the size of transparent area around arrow
height: contentHeight + 12,
+ minHeight: contentHeight + 12,
transparent: true
});