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
|
@ -227,9 +227,11 @@ const Zotero_Lookup = new function () {
|
||||||
slPanel.setAttribute("collapsed", !!on);
|
slPanel.setAttribute("collapsed", !!on);
|
||||||
|
|
||||||
// Resize arrow box to fit content
|
// Resize arrow box to fit content
|
||||||
|
if(Zotero.isMac) {
|
||||||
var panel = document.getElementById("zotero-lookup-panel");
|
var panel = document.getElementById("zotero-lookup-panel");
|
||||||
var box = panel.firstChild;
|
var box = panel.firstChild;
|
||||||
panel.sizeTo(box.scrollWidth, box.scrollHeight);
|
panel.sizeTo(box.scrollWidth, box.scrollHeight);
|
||||||
|
}
|
||||||
|
|
||||||
dest.focus();
|
dest.focus();
|
||||||
return dest;
|
return dest;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user