Proper fix to citation dialog artefacting on macOS. Closes #1720
This commit is contained in:
parent
371cef4035
commit
5913c53509
1 changed files with 10 additions and 1 deletions
|
@ -81,7 +81,6 @@ var Zotero_QuickFormat = new function () {
|
|||
// as titlebar+maincontent, so we have hack around that here.
|
||||
if (Zotero.isMac && Zotero.platformMajorVersion >= 60) {
|
||||
qfb.style.marginBottom = "-22px";
|
||||
referencePanel.style.marginTop = "22px";
|
||||
}
|
||||
|
||||
// add labels to popup
|
||||
|
@ -811,11 +810,21 @@ var Zotero_QuickFormat = new function () {
|
|||
qfs.setAttribute("multiline", true);
|
||||
qfs.style.height = ((Zotero.isMac ? 6 : 4)+qfe.scrollHeight)+"px";
|
||||
window.sizeToContent();
|
||||
// the above line causes drawing artifacts to appear due to a bug with drawintitle property
|
||||
// in fx60. this fixes the artifacting
|
||||
if (Zotero.isMac && Zotero.platformMajorVersion >= 60) {
|
||||
document.children[0].setAttribute('drawintitlebar', 'false');
|
||||
document.children[0].setAttribute('drawintitlebar', 'true');
|
||||
}
|
||||
} else {
|
||||
delete qfs.style.height;
|
||||
qfe.removeAttribute("multiline");
|
||||
qfs.removeAttribute("multiline");
|
||||
window.sizeToContent();
|
||||
if (Zotero.isMac && Zotero.platformMajorVersion >= 60) {
|
||||
document.children[0].setAttribute('drawintitlebar', 'false');
|
||||
document.children[0].setAttribute('drawintitlebar', 'true');
|
||||
}
|
||||
}
|
||||
var panelShowing = referencePanel.state === "open" || referencePanel.state === "showing";
|
||||
|
||||
|
|
Loading…
Reference in a new issue