commit 8a1db4b859d4708e5cd120ccfe5c326a74ac4a38
parent 034041e6d3ad8da90edeccf247eacc5fb7ac33e4
Author: Davide P. Cervone <dpvc@union.edu>
Date: Tue, 30 Dec 2014 18:21:05 -0500
Make HTML-CSS measure the final math element so that the right amount of place is left for it (particularly a problem in Safari).
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js
@@ -879,7 +879,7 @@
return HD;
},
getW: function (span) {
- if (span.bbox && this.config.noReflows) {return span.bbox.w}
+ if (span.bbox && this.config.noReflows && span.bbox.exactW !== false) {return span.bbox.w}
var W, H, w = (span.bbox||{}).w, start = span;
if (span.bbox && span.bbox.exactW) {return w}
if ((span.bbox && w >= 0 && !this.initialSkipBug && !this.msieItalicWidthBug) ||