r1854 - in trunk: css js
[email protected] Sun, 25 Apr 2010 17:43:10 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Sun Apr 25 17:43:10 2010
New Revision: 1854
URL: http://fisheye.liip.ch/changelog/BXE/?cs=1854
Log:
fix zIndex Problem with FF 3.5 and the menus
Modified:
trunk/css/editor.css
trunk/js/widget.js
Modified: trunk/css/editor.css
==============================================================================
--- trunk/css/editor.css (original)
+++ trunk/css/editor.css Sun Apr 25 17:43:10 2010
@@ -45,7 +45,7 @@
padding: 0px 0px 0px 0px;
border-style: outset;
width: 15em;
- z-index: 10000;
+ z-index: 3;
border: 1px dotted black;
}
@@ -77,7 +77,7 @@
height: 16px;
width: 100%;
background-color: #ff6600;
- z-index:1000;
+ z-index:2;
-moz-user-select: none;
}
Modified: trunk/js/widget.js
==============================================================================
--- trunk/js/widget.js (original)
+++ trunk/js/widget.js Sun Apr 25 17:43:10 2010
@@ -124,6 +124,7 @@
document.getElementsByTagName("body")[0].appendChild(this.node);
this.Display = "block";
this.MenuItems = new Array();
+ this.zIndex = 3;
}
Widget_MenuPopup.prototype = new Widget();
@@ -163,6 +164,11 @@
}
}
+Widget_MenuPopup.prototype.setZIndex = function (zIndex) {
+ this.zIndex = zIndex;
+ this.node.style.zIndex = zIndex;
+}
+
Widget_MenuPopup.prototype.addMenuItem = function (label,action) {
var menuitem = new Widget_MenuItem(label,action);
menuitem.MenuPopup = this;
@@ -265,7 +271,7 @@
if (onmouseover) {
this.node.addEventListener("mouseover",onmouseover, false);
}
-
+ menu.setZIndex(this.MenuPopup.zIndex + 1);
this.node.addEventListener("mouseover",Widget_MenuItem_showSubmenu, false);
this.node.addEventListener("mouseout",Widget_MenuItem_hideSubmenu, false);
@@ -345,8 +351,6 @@
this.node.appendChild(menu.node);
menu.draw();
menu.addMenuPopup(submenu);
-
-
}
function Widget_Menu (label, submenu) {
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs