Make sure parents of percentage-width elements have percentage widths.
This commit is contained in:
parent
5296f1111f
commit
e59f6d6484
|
@ -1333,6 +1333,7 @@
|
||||||
bbox.append(cbox);
|
bbox.append(cbox);
|
||||||
if (cbox.ic) {bbox.ic = cbox.ic} else {delete bbox.ic}
|
if (cbox.ic) {bbox.ic = cbox.ic} else {delete bbox.ic}
|
||||||
if (cbox.skew) bbox.skew = cbox.skew;
|
if (cbox.skew) bbox.skew = cbox.skew;
|
||||||
|
if (cbox.pwidth) bbox.pwidth = cbox.pwidth;
|
||||||
}
|
}
|
||||||
} else if (options.forceChild) {cnode = HTML.addElement(node,"mjx-box")}
|
} else if (options.forceChild) {cnode = HTML.addElement(node,"mjx-box")}
|
||||||
return cnode;
|
return cnode;
|
||||||
|
@ -1476,6 +1477,9 @@
|
||||||
BBOX.pwidth = this.data[0].CHTML.pwidth;
|
BBOX.pwidth = this.data[0].CHTML.pwidth;
|
||||||
BBOX.mwidth = this.data[0].CHTML.mwidth;
|
BBOX.mwidth = this.data[0].CHTML.mwidth;
|
||||||
style.width = "100%";
|
style.width = "100%";
|
||||||
|
} else if (BBOX.pwidth) {
|
||||||
|
BBOX.mwidth = BBOX.w;
|
||||||
|
style.width = "100%";
|
||||||
}
|
}
|
||||||
if (!this.style) return;
|
if (!this.style) return;
|
||||||
// ### FIXME: adjust for width, height, vertical-align?
|
// ### FIXME: adjust for width, height, vertical-align?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user