Force a reflow when equations are shown so that misplaced equations get properly placed (resolves issue )

This commit is contained in:
Davide P. Cervone 2011-10-17 05:46:16 -04:00
parent 6901409fae
commit 19977a6b23
6 changed files with 15 additions and 7 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

File diff suppressed because one or more lines are too long

View File

@ -587,6 +587,12 @@
}
}
}
if (this.forceReflow) {
// WebKit can misplace some elements that should wrap to the next line
// but gets them right ona reflow, so force reflow by toggling a stylesheet
var sheet = (document.styleSheets||[])[0]||{};
sheet.disabled = true; sheet.disabled = false;
}
//
// Save our place so we know what is revealed
//
@ -2551,6 +2557,7 @@
safariVerticalAlignBug: !v3p1,
safariTextNodeBug: !v3p0,
safariWebFontSerif: ["serif"],
forceReflow: true,
allowWebFonts: (v3p1 && !forceImages ? "otf" : false)
});
if (browser.isPC) {
@ -2572,9 +2579,10 @@
AccentBug: true,
AdjustSurd: true,
negativeBBoxes: true,
allowWebFonts: (browser.versionAtLeast("4.0") ? "otf" : "svg"),
safariNegativeSpaceBug: true,
safariWebFontSerif: [""]
safariWebFontSerif: [""],
forceReflow: true,
allowWebFonts: (browser.versionAtLeast("4.0") ? "otf" : "svg")
});
},