Skip to content
Permalink
Browse files

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

  • Loading branch information...
dpvc committed Jan 13, 2014
1 parent b545406 commit b9685dd5076b192b6cbf6b2a3c175c0545657dd1
Showing with 3 additions and 2 deletions.
  1. +3 −2 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);
}

0 comments on commit b9685dd

Please sign in to comment.
You can’t perform that action at this time.