From 0a04a6ce19b9ed2db6160eaa0c7af9444860f822 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sun, 14 Sep 2014 10:33:06 -0400 Subject: [PATCH] Don't clip left or right-hand sides, only top and bottom (which are what need clipping to hide exctra height/depth, and prevent the positioning spans from overlaying the material above). Resolves issue #807, and may hekp issue #646. --- unpacked/jax/output/HTML-CSS/jax.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js index dd05492c7..1e9830e03 100644 --- a/unpacked/jax/output/HTML-CSS/jax.js +++ b/unpacked/jax/output/HTML-CSS/jax.js @@ -1186,9 +1186,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 = bbox.lw - 3*dd, r = 1000; - if (this.initialSkipBug && bbox.lw < 0) {l = -3*dd} - if (bbox.isFixed) {r = bbox.width-l} + var t = HH - H - dd, b = HH + D + dd, l = -1000, r = 1000; span.style.clip = "rect("+this.Em(t)+" "+this.Em(r)+" "+this.Em(b)+" "+this.Em(l)+")"; } }