From 24861d02052a10c3b7b8e22f9eeab22ae616ccc5 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Fri, 3 Apr 2015 15:37:15 -0400 Subject: [PATCH] Adjust bbox for \vecenter when it is repositioned --- unpacked/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 index 11c162fe1..4a2c2d2dd 100644 --- 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; },