Force reflow in Firefox after equations are typeset so that some rendering problems in tables are corrected.

This commit is contained in:
Davide P. Cervone 2011-10-17 06:12:51 -04:00
parent 19977a6b23
commit e9a1c26de1
5 changed files with 18 additions and 85 deletions

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

View File

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