commit 2cbb068d9f78b434b1bb53e090e83c3d765c1a7f
parent 90cd96cd53c2383457c35418b7a5f6122e5ceb71
Author: Davide P. Cervone <dpvc@union.edu>
Date: Tue, 21 May 2013 19:45:36 -0400
Make stretchy characters contribute to height/depth of the proper row (was using the wrong index). Resolves issue #468.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/unpacked/jax/output/HTML-CSS/autoload/mtable.js b/unpacked/jax/output/HTML-CSS/autoload/mtable.js
@@ -76,8 +76,8 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
HD = bbox.h + bbox.d;
if (HD) {
min = HTMLCSS.length2em(min,mu,HD);
- if (min*bbox.h/HD > H[j]) {H[j] = min*bbox.h/HD}
- if (min*bbox.d/HD > D[j]) {D[j] = min*bbox.d/HD}
+ if (min*bbox.h/HD > H[i]) {H[i] = min*bbox.h/HD}
+ if (min*bbox.d/HD > D[i]) {D[i] = min*bbox.d/HD}
}
} else if (mo.HTMLcanStretch("Horizontal")) {
min = HTMLCSS.length2em(min,mu,bbox.w);