www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 49ede41339eb2d6efc6d4d6d2d53965541ecb05e
parent db87f413bb221317bde78ee1e4853b780556aa73
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Sun,  4 May 2014 17:46:34 -0400

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

Diffstat:
Munpacked/jax/output/HTML-CSS/autoload/multiline.js | 5++++-
Munpacked/jax/output/HTML-CSS/jax.js | 2+-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/unpacked/jax/output/HTML-CSS/autoload/multiline.js b/unpacked/jax/output/HTML-CSS/autoload/multiline.js @@ -571,7 +571,10 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () { HTMLmoveLine: function (start,end,span,state,values) { 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) // diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js @@ -2460,7 +2460,7 @@ // (TeXBook pg 150 and Appendix G rule 15e) // 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); span.bbox.w += 2*space; span.bbox.r += 2*space; }