Skip to content

Commit 8eb0294

Browse files
committed
Fix bounding box problem in Firefox with stretchy delimiters (and remove alignment hack that doesn't seem to be needed any longer). resolves issue #729.
1 parent a314139 commit 8eb0294

File tree

1 file changed

+5
-2
lines changed
  • unpacked/jax/output/HTML-CSS

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,10 @@
13921392
span.style.top = this.Em(-h);
13931393
} else {
13941394
span.style.verticalAlign = this.Em(h);
1395-
if (HTMLCSS.ffVerticalAlignBug) {HTMLCSS.createRule(span.parentNode,span.bbox.h,0,0)}
1395+
if (HTMLCSS.ffVerticalAlignBug) {
1396+
HTMLCSS.createRule(span.parentNode,span.bbox.h,0,0);
1397+
delete span.parentNode.bbox;
1398+
}
13961399
}
13971400
}
13981401
},
@@ -2934,7 +2937,7 @@
29342937
(HUB.config.root+"/").substr(0,root.length) === root) {webFonts = "otf"}
29352938
}
29362939
HTMLCSS.Augment({
2937-
ffVerticalAlignBug: true,
2940+
ffVerticalAlignBug: !browser.versionAtLeast("20.0"), // not sure when this bug was fixed
29382941
AccentBug: true,
29392942
allowWebFonts: webFonts
29402943
});

0 commit comments

Comments
 (0)