mirror of
https://github.com/zotero/zotero.git
synced 2026-10-10 03:28:10 +00:00
fix bottom area cutoff after list mode resize
If bubbles overflow to the second line
This commit is contained in:
parent
e8397e48c5
commit
2385e30eaa
1 changed files with 10 additions and 11 deletions
|
|
@ -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;
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue