diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2022-11-29 15:40:36 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2022-11-29 15:40:36 +0100 |
| commit | 4fdc094dd0be2bcbf8e5aaa4d97278c685188d13 (patch) | |
| tree | 8a1d6cf5fb582bf9973ecd4b900fd633d2bbbf75 /gui/src/main/window-controller.ts | |
| parent | 66f03a518f5a020577e0af58f55ce1ebe10b0100 (diff) | |
| parent | fc43e1cf07c702884aeab66784090fa397e4eeb5 (diff) | |
| download | mullvadvpn-4fdc094dd0be2bcbf8e5aaa4d97278c685188d13.tar.xz mullvadvpn-4fdc094dd0be2bcbf8e5aaa4d97278c685188d13.zip | |
Merge branch 'improve-set-position-on-open'
Diffstat (limited to 'gui/src/main/window-controller.ts')
| -rw-r--r-- | gui/src/main/window-controller.ts | 5 |
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(); |
