From 3205a1c1e8acf155904677f4a4a72d4166fd6947 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 16 Mar 2015 11:03:52 -0400 Subject: [PATCH] Handle VCENTER TeXatom. --- unpacked/jax/output/CommonHTML/jax.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js index 95971830e..e400180f7 100644 --- a/unpacked/jax/output/CommonHTML/jax.js +++ b/unpacked/jax/output/CommonHTML/jax.js @@ -2122,8 +2122,11 @@ MML.TeXAtom.Augment({ toCommonHTML: function (node) { node = this.CHTMLdefaultNode(node); - var H = this.CHTML.h, D = this.CHTML.d; - for (var i = 0, m = this.data.length; i < m; i++) this.CHTMLstretchChildV(i,H,D); + 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; + node.style.verticalAlign = CHTML.Em(v); + } return node; } });