www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 24861d02052a10c3b7b8e22f9eeab22ae616ccc5
parent 13e92c28134b9c221d4487e13693b98f3d9462d1
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Fri,  3 Apr 2015 15:37:15 -0400

Adjust bbox for \vecenter when it is repositioned

Diffstat:
Munpacked/jax/output/CommonHTML/jax.js | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js @@ -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; },