www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 35dd1bc204a757b8a7bfebd607c7c66746ff1896
parent a8f9b704e3832eb76b5c14894cf5c0ea0b6cefe1
Author: Simon Kornblith <simon@simonster.com>
Date:   Mon, 28 Apr 2014 19:50:31 -0400

Only enable Add Item by Identifier resizing logic on Mac

This seems to be unnecessary and screw things up on other platforms.

Diffstat:
Mchrome/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 @@ -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;