Fix vertical align percentage to be of initial image height (to be consistent with others)

This commit is contained in:
Davide P. Cervone 2015-08-22 07:50:39 -04:00
parent b5d6f31252
commit 94d236457c

View File

@ -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;
}