fx140: fix cutoff progressWindow on linux (#5462)

Resize the window to fit content on load after the
header is rendered. If the window is resized on
DOMContentLoaded, nothing is rendered yet and the
window will look cutoff on Linux.

Addresses #5453
This commit is contained in:
abaevbog 2025-08-02 00:41:39 -05:00 • committed by GitHub
parent 873beebc0f
commit 2a60011414
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -47,6 +47,5 @@
<script>
var { Zotero } = ChromeUtils.importESModule("chrome://zotero/content/zotero.mjs");
Services.scriptloader.loadSubScript("chrome://zotero/content/titlebar.js", this);
window.addEventListener("DOMContentLoaded", () => window.sizeToContent())
</script>
</window>

View file

@ -473,6 +473,8 @@ Zotero.ProgressWindow = function (options = {}) {
_deferredUntilWindowLoad = [];
_deferredUntilWindowLoadThis = [];
_deferredUntilWindowLoadArgs = [];
_progressWindow.sizeToContent();
}
function _move() {