summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2023-01-09 15:46:05 +0100
committerOskar Nyberg <oskar@mullvad.net>2023-01-09 17:39:08 +0100
commitf487413482edee612dae10899aeb0da7a001d9d8 (patch)
tree814cdfa5557a8b8ca879617a7f71e9b7b470e5a6 /gui/src
parent17c36c1a83fa263c634b2abf37c6007481df0139 (diff)
downloadmullvadvpn-f487413482edee612dae10899aeb0da7a001d9d8.tar.xz
mullvadvpn-f487413482edee612dae10899aeb0da7a001d9d8.zip
Fix height corrections
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/window-controller.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/gui/src/main/window-controller.ts b/gui/src/main/window-controller.ts
index c03a4e9ab3..5cd0857bc4 100644
--- a/gui/src/main/window-controller.ts
+++ b/gui/src/main/window-controller.ts
@@ -318,10 +318,7 @@ export default class WindowController {
case 'win32':
// On Windows the app height ends up slightly lower than we set it to if running in unpinned
// mode and the app becomes a tiny bit taller when pinned to task bar.
- return unpinnedWindow ? contentHeight + 19 : contentHeight - 1;
- case 'linux':
- // On Linux the app ends up slightly lower than we set it to.
- return contentHeight - 25;
+ return unpinnedWindow ? contentHeight + 25 : contentHeight;
default:
return contentHeight;
}