From 2385e30eaa9b8c8421d3685a71305fa8faf9d6c2 Mon Sep 17 00:00:00 2001 From: Bogdan Abaev Date: Tue, 21 Apr 2026 18:17:07 -0700 Subject: [PATCH] fix bottom area cutoff after list mode resize If bubbles overflow to the second line --- .../zotero/integration/citationDialog.js | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/chrome/content/zotero/integration/citationDialog.js b/chrome/content/zotero/integration/citationDialog.js index 3772bb3ea5..fdf31000bc 100644 --- a/chrome/content/zotero/integration/citationDialog.js +++ b/chrome/content/zotero/integration/citationDialog.js @@ -1627,17 +1627,16 @@ class ListLayout extends Layout { ignoreWindowResizing = true; // Timeout is required likely to allow minHeight update to settle - setTimeout(() => { - Helpers.smoothResize(targetWidth, autoHeight, { - onComplete: () => { - if (!_id("citationDialog-list-table")?.contains(doc.activeElement)) { - _id("bubble-input").refocusInput(); - } - document.documentElement.setAttribute("dialog-layout", this.type); - ignoreWindowResizing = false; - }, - }); - }, 10); + await Zotero.Promise.delay(10); + Helpers.smoothResize(targetWidth, autoHeight, { + onComplete: () => { + if (!_id("citationDialog-list-table")?.contains(doc.activeElement)) { + _id("bubble-input").refocusInput(); + } + document.documentElement.setAttribute("dialog-layout", this.type); + ignoreWindowResizing = false; + }, + }); } }