Skip to content

Commit

Permalink
chore: use sensible defaults for window positions (#2498)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuditi authored May 15, 2024
1 parent 4518445 commit 3f495eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/desktop/lib/electron/managers/transak.manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3f495eb

Please sign in to comment.