From a8a4d13b7217422f3bda8e79778225d61d684200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Wed, 26 Sep 2018 14:43:55 +0300 Subject: [PATCH] Fx60: Fix citation dialog height --- chrome/content/zotero/integration/quickFormat.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js index 3f147adc4d..a9adba4ef1 100644 --- a/chrome/content/zotero/integration/quickFormat.js +++ b/chrome/content/zotero/integration/quickFormat.js @@ -77,6 +77,12 @@ var Zotero_QuickFormat = new function () { qfb.setAttribute("square", "true"); } + // With fx60 and drawintitlebar=true Firefox calculates the minHeight + // as titlebar+maincontent, so we have hack around that here. + if (Zotero.isMac && Zotero.platformMajorVersion >= 60) { + qfb.style.marginBottom = "-22px"; + } + // add labels to popup var locators = Zotero.Cite.labels; var menu = document.getElementById("locator-label");