Skip to content

Commit 2cbb068

Browse files
committed
Make stretchy characters contribute to height/depth of the proper row (was using the wrong index). Resolves issue #468.
1 parent 90cd96c commit 2cbb068

File tree

1 file changed

+2
-2
lines changed
  • unpacked/jax/output/HTML-CSS/autoload

1 file changed

+2
-2
lines changed

unpacked/jax/output/HTML-CSS/autoload/mtable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
7676
HD = bbox.h + bbox.d;
7777
if (HD) {
7878
min = HTMLCSS.length2em(min,mu,HD);
79-
if (min*bbox.h/HD > H[j]) {H[j] = min*bbox.h/HD}
80-
if (min*bbox.d/HD > D[j]) {D[j] = min*bbox.d/HD}
79+
if (min*bbox.h/HD > H[i]) {H[i] = min*bbox.h/HD}
80+
if (min*bbox.d/HD > D[i]) {D[i] = min*bbox.d/HD}
8181
}
8282
} else if (mo.HTMLcanStretch("Horizontal")) {
8383
min = HTMLCSS.length2em(min,mu,bbox.w);

0 commit comments

Comments
 (0)