Fix problem with width of backrgound color and borders for mtable

This commit is contained in:
Davide P. Cervone 2011-10-17 05:27:11 -04:00
parent 4c940877bc
commit 0c523ac8df
8 changed files with 12 additions and 11 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -429,6 +429,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
return span;
},
HTMLhandleSpace: function (span) {
span.bbox.keepPadding = true; span.bbox.exact = true;
span.style.paddingLeft = span.style.paddingRight = ".1667em";
}
});

View File

@ -1591,7 +1591,7 @@
if (this.isToken) {lW = span.bbox.lw; rW = span.bbox.rw - span.bbox.w}
if (lpad !== "") {lW += parseFloat(lpad)*(span.scale||1)}
if (rpad !== "") {rW -= parseFloat(rpad)*(span.scale||1)}
var W = Math.max(0,HTMLCSS.getW(span) + (HTMLCSS.PaddingWidthBug ? 0 : rW - lW));
var W = Math.max(0,HTMLCSS.getW(span) + (HTMLCSS.PaddingWidthBug || span.bbox.keepPadding? 0 : rW - lW));
var H = span.bbox.h + span.bbox.d, D = -span.bbox.d, lp = 0, rp = 0;
if (W > 0) {W += 2*dd; lW -= dd}; if (H > 0) {H += 2*dd; D -= dd}; rW = -W-lW;
if (borders) {