Don't use MathJax_MSIE_Frame for those vesions of IE that suppor position:fixed (7 and above, as it turns out). Resolves issue #738.
This commit is contained in:
parent
0b3454ce25
commit
8ed9207668
|
@ -1557,7 +1557,9 @@ MathJax.Message = {
|
||||||
|
|
||||||
browsers: {
|
browsers: {
|
||||||
MSIE: function (browser) {
|
MSIE: function (browser) {
|
||||||
MathJax.Hub.config.styles["#MathJax_Message"].position = "absolute";
|
MathJax.Message.msieFixedPositionBug = ((document.documentMode||0) < 7);
|
||||||
|
if (MathJax.Message.msieFixedPositionBug)
|
||||||
|
{MathJax.Hub.config.styles["#MathJax_Message"].position = "absolute"}
|
||||||
MathJax.Message.quirks = (document.compatMode === "BackCompat");
|
MathJax.Message.quirks = (document.compatMode === "BackCompat");
|
||||||
},
|
},
|
||||||
Chrome: function (browser) {
|
Chrome: function (browser) {
|
||||||
|
@ -1580,7 +1582,7 @@ MathJax.Message = {
|
||||||
}
|
}
|
||||||
if (!this.div) {
|
if (!this.div) {
|
||||||
var frame = document.body;
|
var frame = document.body;
|
||||||
if (MathJax.Hub.Browser.isMSIE && window.attachEvent) {
|
if (this.msieFixedPositionBug && window.attachEvent) {
|
||||||
frame = this.frame = this.addDiv(document.body); frame.removeAttribute("id");
|
frame = this.frame = this.addDiv(document.body); frame.removeAttribute("id");
|
||||||
frame.style.position = "absolute";
|
frame.style.position = "absolute";
|
||||||
frame.style.border = frame.style.margin = frame.style.padding = "0px";
|
frame.style.border = frame.style.margin = frame.style.padding = "0px";
|
||||||
|
|
|
@ -241,8 +241,8 @@
|
||||||
if (HUB.Browser.isMSIE) {
|
if (HUB.Browser.isMSIE) {
|
||||||
if (CONFIG.messageStyle.position === "fixed") {
|
if (CONFIG.messageStyle.position === "fixed") {
|
||||||
MathJax.Message.Init(); // make sure MathJax_MSIE_frame exists
|
MathJax.Message.Init(); // make sure MathJax_MSIE_frame exists
|
||||||
frame = document.getElementById("MathJax_MSIE_Frame");
|
frame = document.getElementById("MathJax_MSIE_Frame") || frame;
|
||||||
CONFIG.messageStyle.position = "absolute";
|
if (frame !== document.body) {CONFIG.messageStyle.position = "absolute"}
|
||||||
}
|
}
|
||||||
} else {delete CONFIG.messageStyle.filter}
|
} else {delete CONFIG.messageStyle.filter}
|
||||||
CONFIG.messageStyle.maxWidth = (document.body.clientWidth-75) + "px";
|
CONFIG.messageStyle.maxWidth = (document.body.clientWidth-75) + "px";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user