From a7ddb09615b7845a2db9f1a7bdfd6cadc48b3a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Mon, 14 Oct 2019 11:55:15 +0300 Subject: [PATCH] Fix quick format reference panel extra space on Windows --- chrome/content/zotero/integration/quickFormat.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js index 3f147adc4d..7322482b28 100644 --- a/chrome/content/zotero/integration/quickFormat.js +++ b/chrome/content/zotero/integration/quickFormat.js @@ -73,8 +73,11 @@ var Zotero_QuickFormat = new function () { referencePanel = document.getElementById("quick-format-reference-panel"); referenceBox = document.getElementById("quick-format-reference-list"); - if(Zotero.isWin && Zotero.Prefs.get('integration.keepAddCitationDialogRaised')) { - qfb.setAttribute("square", "true"); + if (Zotero.isWin) { + referencePanel.style.marginTop = "-29px"; + if (Zotero.Prefs.get('integration.keepAddCitationDialogRaised')) { + qfb.setAttribute("square", "true"); + } } // add labels to popup