From 35fe6490feb38d80c3322b89591c9021181ea700 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 27 Apr 2014 20:29:22 -0400 Subject: [PATCH] Fix lookup box sizing on subsequent opens --- chrome/content/zotero/lookup.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chrome/content/zotero/lookup.js b/chrome/content/zotero/lookup.js index 6fc52b44d..a877b3b16 100644 --- 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; }