Merge branch 'issue1332' into develop. Issue #1332.

This commit is contained in:
Davide P. Cervone 2015-12-14 10:10:25 -05:00
commit 20f42d692d

View File

@ -1787,6 +1787,7 @@
bbox = stretchy[i].HTMLspanElement().bbox;
if (stretchy[i].forceStretch || bbox.h !== h || bbox.d !== d)
{stretchy[i].HTMLstretchV(span,h,d); stretched = true}
else if (stretchy[i].needsBBox) stretched = true;
}
if (stretched) {this.HTMLcomputeBBox(span,true)}
if (this.HTMLlineBreaks(span)) {span = this.HTMLmultiline(span)}
@ -1806,8 +1807,11 @@
var BBOX = span.bbox = {exactW: true}, stretchy = [];
while (i < m) {
var core = this.data[i]; if (!core) continue;
if (!full && core.HTMLcanStretch("Vertical"))
{stretchy.push(core); core = (core.CoreMO()||core)}
if (!full && core.HTMLcanStretch("Vertical")) {
stretchy.push(core);
core = (core.CoreMO()||core);
stretchy[stretchy.length-1].needsBBox = (core !== this.data[i]);
}
this.HTMLcombineBBoxes(core,BBOX); i++;
}
this.HTMLcleanBBox(BBOX);