Use original bounding box for CHTMLdimen computations in mpadded.
This commit is contained in:
parent
09bdc86660
commit
e630f1f1f2
|
@ -965,7 +965,8 @@
|
||||||
MML.mpadded.Augment({
|
MML.mpadded.Augment({
|
||||||
toCommonHTML: function (node) {
|
toCommonHTML: function (node) {
|
||||||
node = this.CHTMLdefaultNode(node,{childNodes:"mjx-block", forceChild:true});
|
node = this.CHTMLdefaultNode(node,{childNodes:"mjx-block", forceChild:true});
|
||||||
var child = node.firstChild, cbox = this.CHTMLbboxFor(0), bbox = this.CHTML;
|
var child = node.firstChild, cbox = this.CHTMLbboxFor(0);
|
||||||
|
var bbox = MathJax.Hub.Insert({},this.CHTML); // copy to be updated without affecting CHTMLdimen()
|
||||||
node = HTML.addElement(node,"mjx-block"); node.appendChild(child);
|
node = HTML.addElement(node,"mjx-block"); node.appendChild(child);
|
||||||
var values = this.getValues("width","height","depth","lspace","voffset"), dimen;
|
var values = this.getValues("width","height","depth","lspace","voffset"), dimen;
|
||||||
if (values.width !== "") {
|
if (values.width !== "") {
|
||||||
|
@ -1001,6 +1002,7 @@
|
||||||
node.style.left = CHTML.Em(dimen.len);
|
node.style.left = CHTML.Em(dimen.len);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.CHTML = bbox;
|
||||||
return node.parentNode;
|
return node.parentNode;
|
||||||
},
|
},
|
||||||
CHTMLdimen: function (length,d,m) {
|
CHTMLdimen: function (length,d,m) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user