From 35dd1bc204a757b8a7bfebd607c7c66746ff1896 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 28 Apr 2014 19:50:31 -0400 Subject: [PATCH] Only enable Add Item by Identifier resizing logic on Mac This seems to be unnecessary and screw things up on other platforms. --- chrome/content/zotero/lookup.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/lookup.js b/chrome/content/zotero/lookup.js index a877b3b169..dd97426bb3 100644 --- a/chrome/content/zotero/lookup.js +++ b/chrome/content/zotero/lookup.js @@ -227,9 +227,11 @@ const Zotero_Lookup = new function () { 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); + if(Zotero.isMac) { + var panel = document.getElementById("zotero-lookup-panel"); + var box = panel.firstChild; + panel.sizeTo(box.scrollWidth, box.scrollHeight); + } dest.focus(); return dest;