commit bfcb0e94b581fc1db28d3e8b978e0cbe1358950c
parent d77687489869c987f5d61c97f308d5667ca2691b
Author: Davide P. Cervone <dpvc@union.edu>
Date: Fri, 11 Dec 2015 11:53:53 -0500
Recompute the bounding box for an mrow with stretchable embellished operators that didn't actually stretch. Resolves issue #1332.
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js
@@ -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);