From 3f495eb62978bff8b47a183cd62bcca0ff48722d Mon Sep 17 00:00:00 2001 From: Tuditi <45079109+Tuditi@users.noreply.github.com> Date: Wed, 15 May 2024 15:34:26 +0200 Subject: [PATCH] chore: use sensible defaults for window positions (#2498) --- packages/desktop/lib/electron/managers/transak.manager.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/desktop/lib/electron/managers/transak.manager.ts b/packages/desktop/lib/electron/managers/transak.manager.ts index 442bee3740..cc4f3b2d1e 100644 --- a/packages/desktop/lib/electron/managers/transak.manager.ts +++ b/packages/desktop/lib/electron/managers/transak.manager.ts @@ -179,9 +179,9 @@ export default class TransakManager implements ITransakManager { public positionWindow(): void { try { if (windows.transak) { - const [mainWindowX, mainWindowY] = windows.main?.getPosition() ?? [] - const [, mainWindowHeight] = windows.main?.getSize() ?? [] - const [, bodyHeight] = windows.main?.getContentSize() ?? [] + const [mainWindowX, mainWindowY] = windows.main?.getPosition() ?? [0, 0] + const [, mainWindowHeight] = windows.main?.getSize() ?? [1280, 720] + const [, bodyHeight] = windows.main?.getContentSize() ?? [1280, 720] const menuHeight = mainWindowHeight - bodyHeight