From 553a71bb44de5dff8fbc7126b13fd40ed3b7e26f Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Thu, 5 Mar 2015 15:43:36 -0500 Subject: [PATCH] Make sure that mphantom acts like a box with text, so that the sizing and baseline positioning are correct. --- unpacked/jax/output/CommonHTML/jax.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js index 3c4ddb762..eddd6adc1 100644 --- a/unpacked/jax/output/CommonHTML/jax.js +++ b/unpacked/jax/output/CommonHTML/jax.js @@ -967,7 +967,8 @@ node = this.CHTMLdefaultNode(node,{childNodes:"mjx-block", forceChild:true}); var child = node.firstChild, cbox = this.CHTMLbboxFor(0); var bbox = MathJax.Hub.Insert({},this.CHTML); // copy to be updated without affecting CHTMLdimen() - node = HTML.addElement(node,"mjx-block"); node.appendChild(child); + node = HTML.addElement(node,"mjx-block"); + node.appendChild(child); HTML.addElement(child,"mjx-box"); // force box be in text mode var values = this.getValues("width","height","depth","lspace","voffset"), dimen; if (values.width !== "") { dimen = this.CHTMLdimen(values.width,"w",0);