Fix lookup box sizing on subsequent opens
This commit is contained in:
parent
6cf613c4fa
commit
35fe6490fe
1 changed files with 6 additions and 0 deletions
|
@ -225,6 +225,12 @@ const Zotero_Lookup = new function () {
|
||||||
//switch textboxes
|
//switch textboxes
|
||||||
mlPanel.setAttribute("collapsed", !on);
|
mlPanel.setAttribute("collapsed", !on);
|
||||||
slPanel.setAttribute("collapsed", !!on);
|
slPanel.setAttribute("collapsed", !!on);
|
||||||
|
|
||||||
|
// Resize arrow box to fit content
|
||||||
|
var panel = document.getElementById("zotero-lookup-panel");
|
||||||
|
var box = panel.firstChild;
|
||||||
|
panel.sizeTo(box.scrollWidth, box.scrollHeight);
|
||||||
|
|
||||||
dest.focus();
|
dest.focus();
|
||||||
return dest;
|
return dest;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue