www

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

commit 3205a1c1e8acf155904677f4a4a72d4166fd6947
parent 930a959f716dd75ba7c2262c5bb9e8cdee1253d6
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Mon, 16 Mar 2015 11:03:52 -0400

Handle VCENTER TeXatom.

Diffstat:
Munpacked/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 @@ -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; } });