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:
parent
a8f9b704e3
commit
35dd1bc204
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue