Skip to content

Commit 99782ae

Browse files
committed
Remove padding from elements where CSS overrides it. Resolves issue #1359.
1 parent 3ba6066 commit 99782ae

File tree

1 file changed

+1
-0
lines changed
  • unpacked/jax/output/CommonHTML

1 file changed

+1
-0
lines changed

unpacked/jax/output/CommonHTML/jax.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,6 +2111,7 @@
21112111
bbox[i] = this.CHTMLbboxFor(i); bbox[i].x = bbox[i].y = 0;
21122112
if (this.data[i]) bbox[i].stretch = this.data[i].CHTMLcanStretch("Horizontal");
21132113
scale = (i === this.base ? 1 : bbox[i].rscale);
2114+
if (i !== this.base) {delete bbox[i].L; delete bbox[i].R} // these are overriden by CSS
21142115
W = Math.max(W,scale*(bbox[i].w + (bbox[i].L||0) + (bbox[i].R||0)));
21152116
if (!bbox[i].stretch && W > w) w = W;
21162117
}

0 commit comments

Comments
 (0)