Fix issue with downloads position after window (un)maximize (#2273)

This commit is contained in:
Tasos Boulis
2022-10-07 17:14:17 +03:00
committed by GitHub
parent a4b05c601b
commit a5dac0f4b2
2 changed files with 5 additions and 0 deletions

View File

@@ -31,6 +31,7 @@
"spreadsheetml", "spreadsheetml",
"textbox", "textbox",
"UNCLOSEABLE", "UNCLOSEABLE",
"Unmaximize",
"Unreads", "Unreads",
"webcontents", "webcontents",
"wordprocessingml", "wordprocessingml",

View File

@@ -182,10 +182,14 @@ export class WindowManager {
on = this.mainWindow?.on; on = this.mainWindow?.on;
handleMaximizeMainWindow = () => { handleMaximizeMainWindow = () => {
this.downloadsDropdown?.updateWindowBounds();
this.downloadsDropdownMenu?.updateWindowBounds();
this.sendToRenderer(MAXIMIZE_CHANGE, true); this.sendToRenderer(MAXIMIZE_CHANGE, true);
} }
handleUnmaximizeMainWindow = () => { handleUnmaximizeMainWindow = () => {
this.downloadsDropdown?.updateWindowBounds();
this.downloadsDropdownMenu?.updateWindowBounds();
this.sendToRenderer(MAXIMIZE_CHANGE, false); this.sendToRenderer(MAXIMIZE_CHANGE, false);
} }