We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed932ec commit bbf543aCopy full SHA for bbf543a
unpacked/jax/output/NativeMML/jax.js
@@ -950,6 +950,11 @@
950
//
951
parent.style.width = (math.firstChild.scrollWidth/nMML.ex/nMML.scale).toFixed(3) + "ex";
952
}
953
+ //
954
+ // Firefox gets the widths of <mtd> elements wrong, so run
955
+ // through them (now that the math is part of the page) and
956
+ // fix them up. Use ex's so that they print properly (see above).
957
958
for (var i = 0, m = nMML.adjustWidths.length; i < m; i++) {
959
var tag = nMML.adjustWidths[i];
960
var style = tag.getAttribute("style") || "";
@@ -959,6 +964,7 @@
964
tag.setAttribute("style",style+"width:"+width+"ex");
965
961
966
967
+ nMML.adjustWidths = []; // clear it so we don't hold onto the DOM elements
962
968
963
969
});
970
0 commit comments