Fix vertical align percentage to be of initial image height (to be consistent with others)
This commit is contained in:
parent
b5d6f31252
commit
94d236457c
|
@ -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;
|
bbox.w = bbox.r = img.offsetWidth/CHTML.em; bbox.h = bbox.t = img.offsetHeight/CHTML.em;
|
||||||
if (values.valign) {
|
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);
|
img.style.verticalAlign = CHTML.Em(-bbox.d);
|
||||||
bbox.h -= bbox.d; bbox.t = bbox.h;
|
bbox.h -= bbox.d; bbox.t = bbox.h;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user