Only enable Add Item by Identifier resizing logic on Mac

This seems to be unnecessary and screw things up on other platforms.
This commit is contained in:
Simon Kornblith 2014-04-28 19:50:31 -04:00
parent a8f9b704e3
commit 35dd1bc204

View file

@ -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;