commit 6750535319ef4584b8ed66d07aea4636ca71a0fb parent 2b2da828c09eff38b40184bbfa15292bc2585a15 Author: Simon Kornblith <simon@simonster.com> Date: Tue, 17 Jan 2012 00:23:59 -0500 Fix panel sizing on OS X and Windows Diffstat:
| M | 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 @@ -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();