Don't try to compensate for super and subscripts (it doesn't work). That will need a more comprehensive solution

This commit is contained in:
Davide P. Cervone 2012-03-15 16:16:30 -04:00
parent c2e94a827e
commit 153297bdb9
11 changed files with 13 additions and 16 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

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

@ -71,9 +71,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
mo = cell.CoreMO()
var min = mo.Get("minsize",true);
if (min && mo.HTMLcanStretch("Horizontal")) {
var mw = mo.HTMLspanElement().bbox.w
A[i][j].dw = HTMLCSS.length2em(min,mu,mw) - mw;
min = A[i][j].bbox.w + A[i][j].dw;
min = HTMLCSS.length2em(min,mu,mo.HTMLspanElement().bbox.w);
if (min > W[j]) {W[j] = min}
}
}
@ -258,7 +256,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
s = (this.data[i].type === "mlabeledtr" ? LABEL : 0);
cell = this.data[i].data[j-s];
if (cell.HTMLcanStretch("Horizontal")) {
A[i][j].bbox = cell.HTMLstretchH(C[j],W[j]-(A[i][j].dw||0)).bbox
A[i][j].bbox = cell.HTMLstretchH(C[j],W[j]).bbox
} else if (cell.HTMLcanStretch("Vertical")) {
mo = cell.CoreMO();
var symmetric = mo.symmetric; mo.symmetric = false;

View File

@ -67,8 +67,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
mo = cell.CoreMO();
var min = mo.Get("minsize",true);
if (min && mo.SVGcanStretch("Horizontal")) {
A[i][j].dw = SVG.length2em(min,mu,mo.SVGdata.w) - mo.SVGdata.w;
min = A[i][j].w + A[i][j].dw;
min = SVG.length2em(min,mu,mo.SVGdata.w);
if (min > W[j]) {W[j] = min}
}
}
@ -241,7 +240,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
s = (this.data[i].type === "mlabeledtr" ? LABEL : 0);
cell = this.data[i].data[j-s];
if (cell.SVGcanStretch("Horizontal")) {
A[i][j] = cell.SVGstretchH(W[j]-(A[i][j].dw||0));
A[i][j] = cell.SVGstretchH(W[j]);
} else if (cell.SVGcanStretch("Vertical")) {
mo = cell.CoreMO();
var symmetric = mo.symmetric; mo.symmetric = false;