jquery - Submenu is overlapping main menu in IE 11 -


recently upgraded ie 9 ie 11. menu bar disabled when opened in enterprise mode menu bar started working submenu overlapping main menu bar.

submenu code

menubar.prototype=new menu(); menuitem.prototype.showsubmenu=function(bdelayed) {     var sm=this.submenu();     var pm=this.parentmenu();     if(sm && !this.disabled)     {         pm._abouttoshowsubmenu=true;         var othis=this;         sm._showtimer=window.settimeout("eventlisteners.menuitem.onshowtimer(\""+this.id+showtimeout)");     } }  menuitem.prototype.tohtml.funcyion() {     var cssclass=this.getcssclass();     var tooltips=this.gettooltips();     return <tr> ("cssclass!= ""? "\cssclass :"") +             ("tooltips!= ""? "\tooltips:"") +             (!this.styles="" "display:none: "") +             ">"+ }  menuitem.prototype.positionsubmenu=function() {     var dir=this.submenudirection;//its vertical     var e1=this._htmlelement;     var useinsets=this._useinsets;     var sm=this.submenu;     var othis=this;     if(!sm._iscssfileloaded())     {         window.settimeout("eventlisteners.menuitem.onpostionsubmenutimer(\""+this.id+showtimeout)");         return;     }     var rect={         left:poslib.getscreenleft(e1),         top:poslib.getscreentop(e1),         width:e1.offsetwidth,         height:e1.offsetheight,     };     var menurect={         left:sm.getleft(),         top:sm.gettop(),         width:sm.getpreferredwidth(),         height:sm.getpreferredheight(),         insetleft:useinset?sm.getinsetleft():0,         insetright:useinset?sm.insetrightt():0,         insettop:useinset?sm.getinsettop():0,         insetbottom:useinset?sm.getinsetbottom():0          var scrollbefore=sm._scrollingmode;         sm.show(left,top,width,height);         if(sm._scrollingmode!=scrollbefore)         this.positionsubmenu();     }; }  menubar.prototype.getleft=function() {     return poslib.getscreenleft(this._htmlelement); }    menubar.prototype.gettop=function() {     return poslib.getscreenleft(this._htmlelement); }   menubar.prototype.getinsetleft=function() {     return parseint(this._htmlelement.currentstyle.borderleftwidth); }  menubar.prototype.getinsettop=function() {     return parseint(this._htmlelement.currentstyle.bordertopwidth); }    menubar.prototype.getinsetbottom=function() {     return parseint(this._htmlelement.currentstyle.borderbottomwidth); }  menubar.prototype.getinsetright=function() {     return parseint(this._htmlelement.currentstyle.borderrightwidth); } 

kindly reply if knows or suggestion?

yes right tohtml function had issue. changed logic , working fine.thanks suggestion


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -