Adjust bbox for \vecenter when it is repositioned

This commit is contained in:
Davide P. Cervone 2015-04-03 15:37:15 -04:00
parent 13e92c2813
commit 24861d0205

View File

@ -2479,7 +2479,10 @@
if (this.texClass === MML.TEXCLASS.VCENTER) {
var a = CHTML.TEX.axis_height, BBOX = this.CHTML;
var v = a-(BBOX.h+BBOX.d)/2+BBOX.d;
if (Math.abs(v) > .001) node.style.verticalAlign = CHTML.Em(v);
if (Math.abs(v) > .001) {
node.style.verticalAlign = CHTML.Em(v);
BBOX.h += v; BBOX.t += v; BBOX.d -= v; BBOX.b -= v;
}
}
return node;
},