Skip to content
This repository was archived by the owner on Dec 2, 2023. It is now read-only.

Commit c920c94

Browse files
committed
Fixed Window Positioning Edge Case
Fixed an edge case where the window positioning was wrong when opening the window for the first time in a new install.
1 parent 689d82a commit c920c94

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/window.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ export default class WindowManager {
103103
state.height = state.height == undefined ? defaults.height : state.height;
104104
state.width = state.width == undefined ? defaults.width : state.width;
105105
}
106+
} else {
107+
state.height = state.height == undefined ? defaults.height : state.height;
108+
state.width = state.width == undefined ? defaults.width : state.width;
106109
}
107110

108111
const trackResize = (win: BrowserWindow) => {

0 commit comments

Comments
 (0)