From 6750535319ef4584b8ed66d07aea4636ca71a0fb Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 17 Jan 2012 00:23:59 -0500 Subject: [PATCH] Fix panel sizing on OS X and Windows --- chrome/content/zotero/integration/quickFormat.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js index 732c51e732..3206db38f7 100644 --- a/chrome/content/zotero/integration/quickFormat.js +++ b/chrome/content/zotero/integration/quickFormat.js @@ -741,11 +741,15 @@ var Zotero_QuickFormat = new function () { } if(!panelFrameHeight) { - panelFrameHeight = referencePanel.boxObject.height - referencePanel.clientHeight; + if(Zotero.isWin || Zotero.isMac) { + panelFrameHeight = 1; + } else { + panelFrameHeight = referencePanel.boxObject.height - referencePanel.clientHeight; + } } referencePanel.sizeTo(window.outerWidth-30, - numReferences*referenceHeight+numSeparators*separatorHeight+2*panelFrameHeight-1); + numReferences*referenceHeight+numSeparators*separatorHeight+2*panelFrameHeight); if(!panelShowing) _openReferencePanel(); } else if(panelShowing) { referencePanel.hidePopup();