Skip to content
Permalink
Browse files

Don't use MathJax_MSIE_Frame for those vesions of IE that suppor posi…

…tion:fixed (7 and above, as it turns out). Resolves issue mathjax#738.
  • Loading branch information...
dpvc committed Feb 20, 2014
1 parent 0b3454c commit 8ed92076683d61752ae7246845e0be73df4556a0
Showing with 6 additions and 4 deletions.
  1. +4 −2 unpacked/MathJax.js
  2. +2 −2 unpacked/extensions/FontWarnings.js
@@ -1557,7 +1557,9 @@ MathJax.Message = {

browsers: {
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");
},
Chrome: function (browser) {
@@ -1580,7 +1582,7 @@ MathJax.Message = {
}
if (!this.div) {
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.style.position = "absolute";
frame.style.border = frame.style.margin = frame.style.padding = "0px";
@@ -241,8 +241,8 @@
if (HUB.Browser.isMSIE) {
if (CONFIG.messageStyle.position === "fixed") {
MathJax.Message.Init(); // make sure MathJax_MSIE_frame exists
frame = document.getElementById("MathJax_MSIE_Frame");
CONFIG.messageStyle.position = "absolute";
frame = document.getElementById("MathJax_MSIE_Frame") || frame;
if (frame !== document.body) {CONFIG.messageStyle.position = "absolute"}
}
} else {delete CONFIG.messageStyle.filter}
CONFIG.messageStyle.maxWidth = (document.body.clientWidth-75) + "px";

0 comments on commit 8ed9207

Please sign in to comment.
You can’t perform that action at this time.