summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2022-11-24 15:06:25 +0100
committerOskar Nyberg <oskar@mullvad.net>2022-11-29 15:14:15 +0100
commitfc43e1cf07c702884aeab66784090fa397e4eeb5 (patch)
tree8a1d6cf5fb582bf9973ecd4b900fd633d2bbbf75 /gui
parent66f03a518f5a020577e0af58f55ce1ebe10b0100 (diff)
downloadmullvadvpn-fc43e1cf07c702884aeab66784090fa397e4eeb5.tar.xz
mullvadvpn-fc43e1cf07c702884aeab66784090fa397e4eeb5.zip
Set window bounds with correct size instead of position on show
Diffstat (limited to 'gui')
-rw-r--r--gui/src/main/window-controller.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/src/main/window-controller.ts b/gui/src/main/window-controller.ts
index dbe4a8e983..c03a4e9ab3 100644
--- a/gui/src/main/window-controller.ts
+++ b/gui/src/main/window-controller.ts
@@ -196,8 +196,9 @@ export default class WindowController {
public updatePosition() {
if (this.window) {
- const { x, y } = this.windowPositioning.getPosition(this.window);
- this.window.setPosition(x, y, false);
+ const position = this.windowPositioning.getPosition(this.window);
+ const size = WindowController.getContentSize(this.delegate.isUnpinnedWindow());
+ this.window.setBounds({ ...position, ...size }, false);
}
this.notifyUpdateWindowShape();