Fix panel sizing on OS X and Windows
This commit is contained in:
parent
2b2da828c0
commit
6750535319
1 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue