fix bottom area cutoff after list mode resize

If bubbles overflow to the second line
This commit is contained in:
Bogdan Abaev 2026-04-21 18:17:07 -07:00
parent e8397e48c5
commit 2385e30eaa

View file

@ -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;
},
});
}
}