www

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

commit b9685dd5076b192b6cbf6b2a3c175c0545657dd1
parent b5454061ccf3150201cc2bc34f77f04f69730542
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Mon, 13 Jan 2014 11:50:49 -0500

Fix incorrect min-width for mtd elements. Resolves issue #699.

Diffstat:
Munpacked/jax/output/NativeMML/jax.js | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/unpacked/jax/output/NativeMML/jax.js b/unpacked/jax/output/NativeMML/jax.js @@ -974,8 +974,9 @@ tag = nMML.adjustWidths[i]; var style = tag.getAttribute("style") || ""; if (!style.match(/(^|;)\s*min-width:/)) { - mtd.push(tag.scrollWidth); - var width = (tag.scrollWidth/nMML.ex).toFixed(3)+"ex"; + var width = tag.firstChild.scrollWidth; + mtd.push(width); + width = (width/nMML.ex).toFixed(3)+"ex"; style = style.replace(/;?\s*$/,"; "); tag.setAttribute("style",style+"min-width:"+width); }