Update master to v2.7.1 #1
|
@ -767,8 +767,10 @@
|
||||||
bbox = this.PHTMLbboxFor(this.base),
|
bbox = this.PHTMLbboxFor(this.base),
|
||||||
BBOX = this.PHTML, acc = obox.acc;
|
BBOX = this.PHTML, acc = obox.acc;
|
||||||
if (this.data[this.over]) {
|
if (this.data[this.over]) {
|
||||||
|
if (span.lastChild.firstChild){
|
||||||
span.lastChild.firstChild.style.marginLeft = obox.l =
|
span.lastChild.firstChild.style.marginLeft = obox.l =
|
||||||
span.lastChild.firstChild.style.marginRight = obox.r = 0;
|
span.lastChild.firstChild.style.marginRight = obox.r = 0;
|
||||||
|
}
|
||||||
var over = HTML.Element("span",{},[["span",{className:"MJXp-over"}]]);
|
var over = HTML.Element("span",{},[["span",{className:"MJXp-over"}]]);
|
||||||
over.firstChild.appendChild(span.lastChild);
|
over.firstChild.appendChild(span.lastChild);
|
||||||
if (span.childNodes.length > (this.data[this.under] ? 1 : 0))
|
if (span.childNodes.length > (this.data[this.under] ? 1 : 0))
|
||||||
|
@ -786,8 +788,10 @@
|
||||||
else {span.appendChild(over)}
|
else {span.appendChild(over)}
|
||||||
}
|
}
|
||||||
if (this.data[this.under]) {
|
if (this.data[this.under]) {
|
||||||
|
if (span.lastChild.firstChild) {
|
||||||
span.lastChild.firstChild.style.marginLeft = ubox.l =
|
span.lastChild.firstChild.style.marginLeft = ubox.l =
|
||||||
span.lastChild.firstChild.marginRight = ubox.r = 0;
|
span.lastChild.firstChild.marginRight = ubox.r = 0;
|
||||||
|
}
|
||||||
this.data[this.under].PHTMLhandleScriptlevel(span.lastChild);
|
this.data[this.under].PHTMLhandleScriptlevel(span.lastChild);
|
||||||
}
|
}
|
||||||
BBOX.w = Math.max(.8*obox.w,.8*ubox.w,bbox.w);
|
BBOX.w = Math.max(.8*obox.w,.8*ubox.w,bbox.w);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user