Fix panel sizing on OS X and Windows

This commit is contained in:
Simon Kornblith 2012-01-17 00:23:59 -05:00
parent 2b2da828c0
commit 6750535319

View file

@ -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();