Author: sergeyhalipov
Date: 2008-03-11 09:10:18 -0400 (Tue, 11 Mar 2008)
New Revision: 6684
Modified:
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
Log:
http://jira.jboss.com/jira/browse/RF-2349
Modified:
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
===================================================================
---
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2008-03-11
12:59:26 UTC (rev 6683)
+++
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2008-03-11
13:10:18 UTC (rev 6684)
@@ -149,17 +149,16 @@
},
ieSelectWorkAround: function(menuName, on){
- //alert(navigator.userAgent);
if(this.IE || this.NS) {
- menuName = $(menuName).id;
var menu = $(menuName);
+ menuName = menu.id;
var iframe = $(menuName + "_iframe");
if(!iframe&&on){
- iframe = this.initIFrame(menu);
+ this.initIFrame(menu);
+ iframe = $(menuName + "_iframe");
}
var nsfix = (this.NS ? 7 : 0);
if(on){
- var dim = Element.getDimensions(menu);
iframe.style.top = menu.style.top;
iframe.style.left = menu.style.left;
iframe.style.width = menu.offsetWidth + "px"