Skip to content

Commit bde4dd8

Browse files
committed
Fix minimum height of accents in scripts (problem introduces in #1706). Resolves issue #1956.
1 parent 1e28a76 commit bde4dd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

unpacked/jax/output/HTML-CSS/jax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2783,7 +2783,7 @@
27832783
stretch[i] = (D == null && HW != null ? false :
27842784
this.data[i].HTMLcanStretch("Horizontal"));
27852785
if (this.data[this.over] && values.accent) {
2786-
children[i].bbox.h = Math.max(children[i].bbox.h,HTMLCSS.TeX.x_height); // min height of 1ex (#1706)
2786+
children[i].bbox.h = Math.max(children[i].bbox.h,scale*HTMLCSS.TeX.x_height); // min height of 1ex (#1706)
27872787
}
27882788
} else {
27892789
stretch[i] = this.data[i].HTMLcanStretch("Horizontal");

unpacked/jax/output/SVG/jax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1960,7 +1960,7 @@
19601960
boxes[i] = this.SVGdataStretched(i,HW,D);
19611961
stretch[i] = (D != null || HW == null) && this.data[i].SVGcanStretch("Horizontal");
19621962
if (this.data[this.over] && values.accent) {
1963-
boxes[i].h = Math.max(boxes[i].h,SVG.TeX.x_height); // min height of 1ex (#1706)
1963+
boxes[i].h = Math.max(boxes[i].h,scale*SVG.TeX.x_height); // min height of 1ex (#1706)
19641964
}
19651965
} else {
19661966
boxes[i] = this.data[i].toSVG(); boxes[i].x = 0; delete boxes[i].X;

0 commit comments

Comments
 (0)