Skip to content

Commit bebef63

Browse files
committed
Only bubble up italic correction or skew for nodes with only one child.
1 parent afb499f commit bebef63

File tree

1 file changed

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

1 file changed

+7
-2
lines changed

unpacked/jax/output/CommonHTML/jax.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,8 +1415,13 @@
14151415
if (!options.noBBox) {
14161416
var bbox = this.CHTML, cbox = child.CHTML;
14171417
bbox.append(cbox);
1418-
if (cbox.ic) {bbox.ic = cbox.ic} else {delete bbox.ic}
1419-
if (cbox.skew) bbox.skew = cbox.skew;
1418+
if (this.data.length === 1) {
1419+
if (cbox.ic) bbox.ic = cbox.ic;
1420+
if (cbox.skew) bbox.skew = cbox.skew;
1421+
} else {
1422+
delete bbox.ic;
1423+
delete bbox.skew;
1424+
}
14201425
if (cbox.pwidth) bbox.pwidth = cbox.pwidth;
14211426
}
14221427
} else if (options.forceChild) {

0 commit comments

Comments
 (0)