Some fixes to get things to work in older IE versions.
This commit is contained in:
parent
64f237405e
commit
0433a7b0ee
|
@ -51,7 +51,7 @@
|
||||||
Config: function () {
|
Config: function () {
|
||||||
HUB.Config({
|
HUB.Config({
|
||||||
"HTML-CSS": this.config.Chunks,
|
"HTML-CSS": this.config.Chunks,
|
||||||
SVG: this.config.Chunks,
|
SVG: this.config.Chunks
|
||||||
});
|
});
|
||||||
MathJax.Ajax.Styles({".MathJax_Preview .MJXc-math":{color:this.config.color}});
|
MathJax.Ajax.Styles({".MathJax_Preview .MJXc-math":{color:this.config.color}});
|
||||||
var update, delay, style, done, saved;
|
var update, delay, style, done, saved;
|
||||||
|
|
|
@ -2109,7 +2109,7 @@
|
||||||
HTMLCSS.addElement(span,"span",{style:{"font-size":scale}},[text]);
|
HTMLCSS.addElement(span,"span",{style:{"font-size":scale}},[text]);
|
||||||
if (variant.bold) {span.lastChild.style.fontWeight = "bold"}
|
if (variant.bold) {span.lastChild.style.fontWeight = "bold"}
|
||||||
if (variant.italic) {span.lastChild.style.fontStyle = "italic"}
|
if (variant.italic) {span.lastChild.style.fontStyle = "italic"}
|
||||||
delete span.bbox;
|
span.bbox = null;
|
||||||
var HD = HTMLCSS.getHD(span), W = HTMLCSS.getW(span);
|
var HD = HTMLCSS.getHD(span), W = HTMLCSS.getW(span);
|
||||||
span.bbox = {h:HD.h, d:HD.d, w:W, lw:0, rw:W, exactW: true};
|
span.bbox = {h:HD.h, d:HD.d, w:W, lw:0, rw:W, exactW: true};
|
||||||
} else {
|
} else {
|
||||||
|
@ -2850,7 +2850,7 @@
|
||||||
// Add the width to the span (outside the MathJax class, so uses outer em size,
|
// Add the width to the span (outside the MathJax class, so uses outer em size,
|
||||||
// which makes it work even when minimum font size is in effect).
|
// which makes it work even when minimum font size is in effect).
|
||||||
//
|
//
|
||||||
span.style.width = HTMLCSS.Em((Math.round(math.bbox.w*this.em)+.25)/HTMLCSS.outerEm);
|
span.style.width = HTMLCSS.Em(Math.max(0,Math.round(math.bbox.w*this.em)+.25)/HTMLCSS.outerEm);
|
||||||
span.style.display = "inline-block";
|
span.style.display = "inline-block";
|
||||||
//
|
//
|
||||||
// Adjust bbox to match outer em-size
|
// Adjust bbox to match outer em-size
|
||||||
|
|
Loading…
Reference in New Issue
Block a user