Fix problems with indentAlign='right'.

This commit is contained in:
Davide P. Cervone 2015-08-26 17:17:55 -04:00
parent d0e4e1b8f5
commit 8d4a15abc1
2 changed files with 2 additions and 2 deletions

View File

@ -2957,7 +2957,7 @@
color.style.marginLeft = HTMLCSS.Em(L);
color.style.marginRight =
HTMLCSS.Em(R + (values.indentalign === "right" ?
Math.min(0,span.bbox.w+shift) - span.bbox.w : 0));
span.bbox.w+shift - span.bbox.w : 0));
if (HTMLCSS.msieColorBug && values.indentalign === "right") {
if (parseFloat(color.style.marginLeft) > 0) {
var padding = MathJax.HTML.addElement(color.parentNode,"span");

View File

@ -2120,7 +2120,7 @@
if (shift) {
HUB.Insert(style,({
left: {marginLeft: SVG.Ex(shift)},
right: {marginRight: SVG.Ex(-shift)},
right: {marginRight: SVG.Ex(-shift), marginLeft: SVG.Ex(Math.max(0,shift-(l+svg.w+r)))},
center: {marginLeft: SVG.Ex(shift), marginRight: SVG.Ex(-shift)}
})[values.indentalign]);
}