Skip to content

Commit 0433a7b

Browse files
committed
Some fixes to get things to work in older IE versions.
1 parent 64f2374 commit 0433a7b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

unpacked/extensions/CHTML-preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
Config: function () {
5252
HUB.Config({
5353
"HTML-CSS": this.config.Chunks,
54-
SVG: this.config.Chunks,
54+
SVG: this.config.Chunks
5555
});
5656
MathJax.Ajax.Styles({".MathJax_Preview .MJXc-math":{color:this.config.color}});
5757
var update, delay, style, done, saved;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,7 +2109,7 @@
21092109
HTMLCSS.addElement(span,"span",{style:{"font-size":scale}},[text]);
21102110
if (variant.bold) {span.lastChild.style.fontWeight = "bold"}
21112111
if (variant.italic) {span.lastChild.style.fontStyle = "italic"}
2112-
delete span.bbox;
2112+
span.bbox = null;
21132113
var HD = HTMLCSS.getHD(span), W = HTMLCSS.getW(span);
21142114
span.bbox = {h:HD.h, d:HD.d, w:W, lw:0, rw:W, exactW: true};
21152115
} else {
@@ -2850,7 +2850,7 @@
28502850
// Add the width to the span (outside the MathJax class, so uses outer em size,
28512851
// which makes it work even when minimum font size is in effect).
28522852
//
2853-
span.style.width = HTMLCSS.Em((Math.round(math.bbox.w*this.em)+.25)/HTMLCSS.outerEm);
2853+
span.style.width = HTMLCSS.Em(Math.max(0,Math.round(math.bbox.w*this.em)+.25)/HTMLCSS.outerEm);
28542854
span.style.display = "inline-block";
28552855
//
28562856
// Adjust bbox to match outer em-size

0 commit comments

Comments
 (0)