Skip to content

Commit

Permalink
Fix issue with downloads position after window (un)maximize (#2273)
Browse files Browse the repository at this point in the history
  • Loading branch information
tboulis committed Oct 7, 2022
1 parent a4b05c6 commit a5dac0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"spreadsheetml",
"textbox",
"UNCLOSEABLE",
"Unmaximize",
"Unreads",
"webcontents",
"wordprocessingml",
Expand Down
4 changes: 4 additions & 0 deletions src/main/windows/windowManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,14 @@ export class WindowManager {
on = this.mainWindow?.on;

handleMaximizeMainWindow = () => {
this.downloadsDropdown?.updateWindowBounds();
this.downloadsDropdownMenu?.updateWindowBounds();
this.sendToRenderer(MAXIMIZE_CHANGE, true);
}

handleUnmaximizeMainWindow = () => {
this.downloadsDropdown?.updateWindowBounds();
this.downloadsDropdownMenu?.updateWindowBounds();
this.sendToRenderer(MAXIMIZE_CHANGE, false);
}

Expand Down

0 comments on commit a5dac0f

Please sign in to comment.