Handle MSIE padding bug properly when linebreaking mmultiscripts and when adding nulldelimiterspace wround fractions.

This commit is contained in:
Davide P. Cervone 2014-05-04 17:46:34 -04:00
parent db87f413bb
commit 49ede41339
2 changed files with 5 additions and 2 deletions

View File

@ -571,7 +571,10 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
HTMLmoveLine: function (start,end,span,state,values) { HTMLmoveLine: function (start,end,span,state,values) {
var SPAN = this.HTMLspanElement(), data = SPAN.bbox, base = data, var SPAN = this.HTMLspanElement(), data = SPAN.bbox, base = data,
stack = SPAN.firstChild, box = stack.firstChild, dx, BOX = {}; stack = SPAN.firstChild,dx, BOX = {};
if (HTMLCSS.msiePaddingWidthBug) {stack = stack.nextSibling}
var box = stack.firstChild;
// //
// Get the boxes for the scripts (if any) // Get the boxes for the scripts (if any)
// //

View File

@ -2460,7 +2460,7 @@
// (TeXBook pg 150 and Appendix G rule 15e) // (TeXBook pg 150 and Appendix G rule 15e)
// //
var space = HTMLCSS.TeX.nulldelimiterspace * this.mscale; var space = HTMLCSS.TeX.nulldelimiterspace * this.mscale;
var style = span.firstChild.style; var style = span.childNodes[HTMLCSS.msiePaddingWidthBug ? 1 : 0].style;
style.marginLeft = style.marginRight = HTMLCSS.Em(space); style.marginLeft = style.marginRight = HTMLCSS.Em(space);
span.bbox.w += 2*space; span.bbox.r += 2*space; span.bbox.w += 2*space; span.bbox.r += 2*space;
} }