commit d77687489869c987f5d61c97f308d5667ca2691b
parent e3a26033618acab652315058e98ea80ba5a3388e
Author: Davide P. Cervone <dpvc@union.edu>
Date: Tue, 8 Dec 2015 18:07:36 -0500
Merge branch 'issue1280' into develop. Issue #1280.
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js
@@ -1518,6 +1518,9 @@
} else if (BBOX.pwidth) {
BBOX.mwidth = BBOX.w;
style.width = "100%";
+ } else if (BBOX.w < 0) {
+ style.width = "0px";
+ style.marginRight = CHTML.Em(BBOX.w);
}
if (!this.style) return;
// ### FIXME: adjust for width, height, vertical-align?
@@ -1688,6 +1691,10 @@
MML.math.Augment({
toCommonHTML: function (node) {
node = this.CHTMLdefaultNode(node);
+ if (this.CHTML.w < 0) {
+ node.parentNode.style.width = "0px";
+ node.parentNode.style.marginRight = CHTML.Em(this.CHTML.w);
+ }
var alttext = this.Get("alttext");
if (alttext && !node.getAttribute("aria-label")) node.setAttribute("aria-label",alttext);
if (!node.getAttribute("role")) node.setAttribute("role","math");