Skip to content

Commit 86ad973

Browse files
committed
Use x_height rather than explicit value.
1 parent 73c099f commit 86ad973

File tree

1 file changed

+2
-2
lines changed
  • unpacked/jax/output/CommonHTML

1 file changed

+2
-2
lines changed

unpacked/jax/output/CommonHTML/jax.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,8 +2156,8 @@
21562156
// Use a minimum height for accents (#1706)
21572157
// (same issues with the center line as above)
21582158
//
2159-
if (values.accent && bbox.h < .431) {
2160-
base.style.marginTop = CHTML.Em(.431 - Math.max(bbox.h,.35));
2159+
if (values.accent && bbox.h < CHTML.TEX.x_height) {
2160+
base.style.marginTop = CHTML.Em(CHTML.TEX.x_height - Math.max(bbox.h,.35));
21612161
}
21622162
//
21632163
// Add over- and under-scripts

0 commit comments

Comments
 (0)