Fix issue with downloads position after window (un)maximize (#2273)
This commit is contained in:
parent
a4b05c601b
commit
a5dac0f4b2
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
|
@ -31,6 +31,7 @@
|
|||
"spreadsheetml",
|
||||
"textbox",
|
||||
"UNCLOSEABLE",
|
||||
"Unmaximize",
|
||||
"Unreads",
|
||||
"webcontents",
|
||||
"wordprocessingml",
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue