Merge branch 'issue918' into develop. Issue #918.
This commit is contained in:
commit
d38c5632ab
|
@ -438,12 +438,12 @@
|
||||||
var mW = math.offsetWidth || math.scrollWidth,
|
var mW = math.offsetWidth || math.scrollWidth,
|
||||||
mH = math.offsetHeight || math.scrollHeight;
|
mH = math.offsetHeight || math.scrollHeight;
|
||||||
var zW = span.offsetWidth, zH = span.offsetHeight;
|
var zW = span.offsetWidth, zH = span.offsetHeight;
|
||||||
if (nMML.widthBug) {
|
if (nMML.widthBug || span.style.width.match(/%/)) {
|
||||||
//
|
//
|
||||||
// FF doesn't get width of <math> right, so get it from <mrow>
|
// FF doesn't get width of <math> right, so get it from <mrow>
|
||||||
//
|
//
|
||||||
var W = span.firstChild.firstChild.scrollWidth;
|
var W = span.firstChild.firstChild.scrollWidth;
|
||||||
if (W > zW) {zW = W; span.style.width = zW + "px"}
|
if (W > zW) {zW = W; span.parentNode.style.width = span.style.minWidth = zW + "px";}
|
||||||
}
|
}
|
||||||
if (this.msieIE8HeightBug) {span.style.position = ""}
|
if (this.msieIE8HeightBug) {span.style.position = ""}
|
||||||
return {Y:-EVENT.getBBox(span.parentNode).h, mW:mW, mH:mH, zW:zW, zH:zH}
|
return {Y:-EVENT.getBBox(span.parentNode).h, mW:mW, mH:mH, zW:zW, zH:zH}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user