summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJoakim Hulthe <joakim.hulthe@mullvad.net>2025-12-19 11:46:56 +0100
committerJoakim Hulthe <joakim.hulthe@mullvad.net>2025-12-19 12:52:02 +0100
commit817dbdd445f0e54bd9c7a17d909a874d7c3369f2 (patch)
tree31d379142bd850d889a3cec8155e3f5d6c71bc57
parenta6017e53f8c1795109e0e72e60b84c9c475c79a3 (diff)
downloadmullvadvpn-resizeable-electron-window.tar.xz
mullvadvpn-resizeable-electron-window.zip
Make electron window resizeableresizeable-electron-window
-rw-r--r--desktop/packages/mullvad-vpn/src/main/user-interface.ts6
-rw-r--r--desktop/packages/mullvad-vpn/src/renderer/app.tsx36
2 files changed, 21 insertions, 21 deletions
diff --git a/desktop/packages/mullvad-vpn/src/main/user-interface.ts b/desktop/packages/mullvad-vpn/src/main/user-interface.ts
index 96af5ca7e4..f442f6b2bc 100644
--- a/desktop/packages/mullvad-vpn/src/main/user-interface.ts
+++ b/desktop/packages/mullvad-vpn/src/main/user-interface.ts
@@ -288,9 +288,9 @@ export default class UserInterface implements WindowControllerDelegate {
useContentSize: true,
width,
height,
- resizable: false,
- maximizable: false,
- fullscreenable: false,
+ resizable: true,
+ maximizable: true,
+ fullscreenable: true,
show: false,
frame: unpinnedWindow,
webPreferences: {
diff --git a/desktop/packages/mullvad-vpn/src/renderer/app.tsx b/desktop/packages/mullvad-vpn/src/renderer/app.tsx
index b24d9443b4..126c027dbf 100644
--- a/desktop/packages/mullvad-vpn/src/renderer/app.tsx
+++ b/desktop/packages/mullvad-vpn/src/renderer/app.tsx
@@ -340,10 +340,10 @@ export default class AppRenderer {
void this.onDaemonConnected();
}
- this.checkContentHeight(false);
- window.addEventListener('resize', () => {
- this.checkContentHeight(true);
- });
+ // this.checkContentHeight(false);
+ // window.addEventListener('resize', () => {
+ // this.checkContentHeight(true);
+ // });
if (initialState.splitTunnelingApplications) {
this.reduxActions.settings.setSplitTunnelingApplications(
@@ -738,20 +738,20 @@ export default class AppRenderer {
}
}
- // Make sure that the content height is correct and log if it isn't. This is mostly for debugging
- // purposes since there's a bug in Electron that causes the app height to be another value than
- // the one we have set.
- // https://github.com/electron/electron/issues/28777
- private checkContentHeight(resize: boolean): void {
- const expectedContentHeight = 568;
- const contentHeight = window.innerHeight;
- if (contentHeight !== expectedContentHeight) {
- log.verbose(
- resize ? 'Resize:' : 'Initial:',
- `Wrong content height: ${contentHeight}, expected ${expectedContentHeight}`,
- );
- }
- }
+ // // Make sure that the content height is correct and log if it isn't. This is mostly for debugging
+ // // purposes since there's a bug in Electron that causes the app height to be another value than
+ // // the one we have set.
+ // // https://github.com/electron/electron/issues/28777
+ // private checkContentHeight(resize: boolean): void {
+ // const expectedContentHeight = 568;
+ // const contentHeight = window.innerHeight;
+ // if (contentHeight !== expectedContentHeight) {
+ // log.verbose(
+ // resize ? 'Resize:' : 'Initial:',
+ // `Wrong content height: ${contentHeight}, expected ${expectedContentHeight}`,
+ // );
+ // }
+ // }
private setLocale(locale: string) {
this.reduxActions.userInterface.updateLocale(locale);