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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

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

View file

@ -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);
}