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:
parent
c2e94a827e
commit
153297bdb9
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
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user