From 2a6001141479e5350f12db715dea2695184d16a8 Mon Sep 17 00:00:00 2001 From: abaevbog Date: Sat, 2 Aug 2025 00:41:39 -0500 Subject: [PATCH] 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 --- chrome/content/zotero/progressWindow.xhtml | 1 - chrome/content/zotero/xpcom/progressWindow.js | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/progressWindow.xhtml b/chrome/content/zotero/progressWindow.xhtml index 97aced05e1..ac39e39c75 100644 --- a/chrome/content/zotero/progressWindow.xhtml +++ b/chrome/content/zotero/progressWindow.xhtml @@ -47,6 +47,5 @@ diff --git a/chrome/content/zotero/xpcom/progressWindow.js b/chrome/content/zotero/xpcom/progressWindow.js index 5bd1bdf2fa..6849ac3e21 100644 --- a/chrome/content/zotero/xpcom/progressWindow.js +++ b/chrome/content/zotero/xpcom/progressWindow.js @@ -473,6 +473,8 @@ Zotero.ProgressWindow = function (options = {}) { _deferredUntilWindowLoad = []; _deferredUntilWindowLoadThis = []; _deferredUntilWindowLoadArgs = []; + + _progressWindow.sizeToContent(); } function _move() {