Handle MSIE padding bug properly when linebreaking mmultiscripts and when adding nulldelimiterspace wround fractions.
This commit is contained in:
parent
db87f413bb
commit
49ede41339
|
@ -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)
|
||||
//
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user