Fix menu background problem in IE8+ and remove extra comma giving IE7 and IE6 problems.

This commit is contained in:
Davide P. Cervone 2011-12-15 21:05:15 -05:00
parent 9eaa73a0ac
commit d215f20a42
10 changed files with 15 additions and 12 deletions

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

View File

@ -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) {