Fix panel sizing on OS X and Windows
This commit is contained in:
parent
2b2da828c0
commit
6750535319
|
@ -741,11 +741,15 @@ var Zotero_QuickFormat = new function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!panelFrameHeight) {
|
if(!panelFrameHeight) {
|
||||||
|
if(Zotero.isWin || Zotero.isMac) {
|
||||||
|
panelFrameHeight = 1;
|
||||||
|
} else {
|
||||||
panelFrameHeight = referencePanel.boxObject.height - referencePanel.clientHeight;
|
panelFrameHeight = referencePanel.boxObject.height - referencePanel.clientHeight;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
referencePanel.sizeTo(window.outerWidth-30,
|
referencePanel.sizeTo(window.outerWidth-30,
|
||||||
numReferences*referenceHeight+numSeparators*separatorHeight+2*panelFrameHeight-1);
|
numReferences*referenceHeight+numSeparators*separatorHeight+2*panelFrameHeight);
|
||||||
if(!panelShowing) _openReferencePanel();
|
if(!panelShowing) _openReferencePanel();
|
||||||
} else if(panelShowing) {
|
} else if(panelShowing) {
|
||||||
referencePanel.hidePopup();
|
referencePanel.hidePopup();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user