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