commit 35fe6490feb38d80c3322b89591c9021181ea700 parent 6cf613c4fa1e9fcff0bb2a30b2bfe4a5e2a43107 Author: Simon Kornblith <simon@simonster.com> Date: Sun, 27 Apr 2014 20:29:22 -0400 Fix lookup box sizing on subsequent opens Diffstat:
| M | chrome/content/zotero/lookup.js | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/lookup.js b/chrome/content/zotero/lookup.js @@ -225,6 +225,12 @@ const Zotero_Lookup = new function () { //switch textboxes mlPanel.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(); return dest; }