commit 94d236457c8432bb1d15e697d17f9ccc427b37b3
parent b5d6f312529509fc821f21f5d3b044376d56c583
Author: Davide P. Cervone <dpvc@union.edu>
Date: Sat, 22 Aug 2015 07:50:39 -0400
Fix vertical align percentage to be of initial image height (to be consistent with others)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/unpacked/jax/output/CommonHTML/autoload/mglyph.js b/unpacked/jax/output/CommonHTML/autoload/mglyph.js
@@ -68,7 +68,7 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () {
//
bbox.w = bbox.r = img.offsetWidth/CHTML.em; bbox.h = bbox.t = img.offsetHeight/CHTML.em;
if (values.valign) {
- bbox.d = bbox.b = -CHTML.length2em(values.valign,bbox.h);
+ bbox.d = bbox.b = -CHTML.length2em(values.valign,h);
img.style.verticalAlign = CHTML.Em(-bbox.d);
bbox.h -= bbox.d; bbox.t = bbox.h;
}