Force reflow in Firefox after equations are typeset so that some rendering problems in tables are corrected.
This commit is contained in:
parent
19977a6b23
commit
e9a1c26de1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -230,6 +230,16 @@
|
|||
container.ondblclick = EVENT.DblClick;
|
||||
}
|
||||
},
|
||||
|
||||
postTranslate: function (state) {
|
||||
if (this.forceReflow) {
|
||||
// Firefox messes up some mtable's when they are dynamically created
|
||||
// but gets them right on a reflow, so force reflow by toggling a stylesheet
|
||||
var sheet = (document.styleSheets||[])[0]||{};
|
||||
sheet.disabled = true; sheet.disabled = false;
|
||||
}
|
||||
},
|
||||
|
||||
//
|
||||
// Remove MathML preceeding the script
|
||||
//
|
||||
|
@ -578,6 +588,9 @@
|
|||
},
|
||||
Opera: function (browser) {
|
||||
nMML.operaPositionBug = true;
|
||||
},
|
||||
Firefox: function (browser) {
|
||||
nMML.forceReflow = true;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user