From 916965b7772d00ba8e6b70e12c37948e788a72df Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Thu, 17 Dec 2015 19:58:32 -0500 Subject: [PATCH 1/2] Make clip rect larger so that wide math will not beclipped. Resolves issue #1314 --- unpacked/jax/output/HTML-CSS/jax.js | 2 +- 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 index ea29cbac9..d2521d477 100644 --- a/unpacked/jax/output/HTML-CSS/jax.js +++ b/unpacked/jax/output/HTML-CSS/jax.js @@ -1249,7 +1249,7 @@ if (!this.msieClipRectBug && !bbox.noclip && !noclip) { var dd = 3/this.em; var H = (bbox.H == null ? bbox.h : bbox.H), D = (bbox.D == null ? bbox.d : bbox.D); - var t = HH - H - dd, b = HH + D + dd, l = -1000, r = 1000; + var t = HH - H - dd, b = HH + D + dd, l = -10000, r = 1000000; span.style.clip = "rect("+this.Em(t)+" "+this.Em(r)+" "+this.Em(b)+" "+this.Em(l)+")"; } } From 0727dd5ae3ba8ad5b3c2618bca0f2f032c19b14b Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Fri, 18 Dec 2015 05:48:19 -0500 Subject: [PATCH 2/2] Make right clip be the width+1000 rather than a fixed size. Issue #1314 --- unpacked/jax/output/HTML-CSS/jax.js | 2 +- 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 index d2521d477..ecc23e6d5 100644 --- a/unpacked/jax/output/HTML-CSS/jax.js +++ b/unpacked/jax/output/HTML-CSS/jax.js @@ -1249,7 +1249,7 @@ if (!this.msieClipRectBug && !bbox.noclip && !noclip) { var dd = 3/this.em; var H = (bbox.H == null ? bbox.h : bbox.H), D = (bbox.D == null ? bbox.d : bbox.D); - var t = HH - H - dd, b = HH + D + dd, l = -10000, r = 1000000; + var t = HH - H - dd, b = HH + D + dd, l = -1000, r = bbox.rw+1000; span.style.clip = "rect("+this.Em(t)+" "+this.Em(r)+" "+this.Em(b)+" "+this.Em(l)+")"; } }