Fix menu background problem in IE8+ and remove extra comma giving IE7 and IE6 problems.
This commit is contained in:
parent
9eaa73a0ac
commit
d215f20a42
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -183,7 +183,7 @@
|
|||
if (MENU.isMobile) {
|
||||
HTML.addElement(menu,"span",{
|
||||
className: "MathJax_Menu_Close", menu: parent,
|
||||
ontouchstart: MENU.Close, ontouchend: FALSE, onmousedown: MENU.Close, onmouseup: FALSE,
|
||||
ontouchstart: MENU.Close, ontouchend: FALSE, onmousedown: MENU.Close, onmouseup: FALSE
|
||||
},[["img",{src: CONFIG.closeImg, style:{width:"100%",height:"100%"}}]]);
|
||||
}
|
||||
this.posted = true;
|
||||
|
@ -230,7 +230,7 @@
|
|||
var div = document.getElementById("MathJax_MenuFrame");
|
||||
if (div) {
|
||||
div.parentNode.removeChild(div);
|
||||
if (this.msieBackgroundBug) {detachEvent("onresize",MENU.Resize)}
|
||||
if (this.msieFixedPositionBug) {detachEvent("onresize",MENU.Resize)}
|
||||
}
|
||||
if (MENU.jax.hover) {
|
||||
delete MENU.jax.hover.nofade;
|
||||
|
@ -301,6 +301,8 @@
|
|||
// MSIE doesn't allow transparent background to be hit boxes, so
|
||||
// fake it using opacity with solid background color
|
||||
bg.style.backgroundColor = "white"; bg.style.filter = "alpha(opacity=0)";
|
||||
}
|
||||
if (menu.msieFixedPositionBug) {
|
||||
// MSIE can't do fixed position, so use a full-sized background
|
||||
// and an onresize handler to update it (stupid, but necessary)
|
||||
div.width = div.height = 0; this.Resize();
|
||||
|
@ -757,7 +759,8 @@
|
|||
var isIE8 = browser.versionAtLeast("8.0") && document.documentMode > 7;
|
||||
MENU.Augment({
|
||||
margin: 20,
|
||||
msieBackgroundBug: (quirks || !isIE8),
|
||||
msieBackgroundBug: true,
|
||||
msieFixedPositionBug: (quirks || !isIE8),
|
||||
msieAboutBug: quirks
|
||||
});
|
||||
if (document.documentMode >= 9) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user