Recompute the bounding box for an mrow with stretchable embellished operators that didn't actually stretch. Resolves issue #1332.
This commit is contained in:
parent
d776874898
commit
bfcb0e94b5
|
@ -1787,6 +1787,7 @@
|
||||||
bbox = stretchy[i].HTMLspanElement().bbox;
|
bbox = stretchy[i].HTMLspanElement().bbox;
|
||||||
if (stretchy[i].forceStretch || bbox.h !== h || bbox.d !== d)
|
if (stretchy[i].forceStretch || bbox.h !== h || bbox.d !== d)
|
||||||
{stretchy[i].HTMLstretchV(span,h,d); stretched = true}
|
{stretchy[i].HTMLstretchV(span,h,d); stretched = true}
|
||||||
|
else if (stretchy[i].needsBBox) stretched = true;
|
||||||
}
|
}
|
||||||
if (stretched) {this.HTMLcomputeBBox(span,true)}
|
if (stretched) {this.HTMLcomputeBBox(span,true)}
|
||||||
if (this.HTMLlineBreaks(span)) {span = this.HTMLmultiline(span)}
|
if (this.HTMLlineBreaks(span)) {span = this.HTMLmultiline(span)}
|
||||||
|
@ -1806,8 +1807,11 @@
|
||||||
var BBOX = span.bbox = {exactW: true}, stretchy = [];
|
var BBOX = span.bbox = {exactW: true}, stretchy = [];
|
||||||
while (i < m) {
|
while (i < m) {
|
||||||
var core = this.data[i]; if (!core) continue;
|
var core = this.data[i]; if (!core) continue;
|
||||||
if (!full && core.HTMLcanStretch("Vertical"))
|
if (!full && core.HTMLcanStretch("Vertical")) {
|
||||||
{stretchy.push(core); core = (core.CoreMO()||core)}
|
stretchy.push(core);
|
||||||
|
core = (core.CoreMO()||core);
|
||||||
|
stretchy[stretchy.length-1].needsBBox = (core !== this.data[i]);
|
||||||
|
}
|
||||||
this.HTMLcombineBBoxes(core,BBOX); i++;
|
this.HTMLcombineBBoxes(core,BBOX); i++;
|
||||||
}
|
}
|
||||||
this.HTMLcleanBBox(BBOX);
|
this.HTMLcleanBBox(BBOX);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user