Adjust how options are handled, as per Volker's comments.
This commit is contained in:
parent
ba22166399
commit
38a9a12dcf
|
@ -2602,6 +2602,7 @@
|
||||||
|
|
||||||
MML.mrow.Augment({
|
MML.mrow.Augment({
|
||||||
toCommonHTML: function (node,options) {
|
toCommonHTML: function (node,options) {
|
||||||
|
options = options || {};
|
||||||
node = this.CHTMLdefaultNode(node);
|
node = this.CHTMLdefaultNode(node);
|
||||||
var bbox = this.CHTML, H = bbox.h, D = bbox.d, hasNegative;
|
var bbox = this.CHTML, H = bbox.h, D = bbox.d, hasNegative;
|
||||||
for (var i = 0, m = this.data.length; i < m; i++) {
|
for (var i = 0, m = this.data.length; i < m; i++) {
|
||||||
|
@ -2610,7 +2611,7 @@
|
||||||
}
|
}
|
||||||
if (this.CHTMLlineBreaks()) {
|
if (this.CHTMLlineBreaks()) {
|
||||||
this.CHTMLmultiline(node);
|
this.CHTMLmultiline(node);
|
||||||
if ((options||{}).autowidth) node.style.width = "";
|
if (options.autowidth) node.style.width = "";
|
||||||
} else {
|
} else {
|
||||||
if (hasNegative && bbox.w) node.style.width = CHTML.Em(Math.max(0,bbox.w));
|
if (hasNegative && bbox.w) node.style.width = CHTML.Em(Math.max(0,bbox.w));
|
||||||
if (bbox.w < 0) node.style.marginRight = CHTML.Em(bbox.w);
|
if (bbox.w < 0) node.style.marginRight = CHTML.Em(bbox.w);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user