www

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

commit 553a71bb44de5dff8fbc7126b13fd40ed3b7e26f
parent e630f1f1f2317f078f5a420dfd6fb6de2f07bcb4
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Thu,  5 Mar 2015 15:43:36 -0500

Make sure that mphantom acts like a box with text, so that the sizing and baseline positioning are correct.

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