Fix problems with indentAlign='right'.
This commit is contained in:
parent
d0e4e1b8f5
commit
8d4a15abc1
|
@ -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");
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user