Roo/bootstrap/Menu.js
authoredward <edward@roojs.com>
Fri, 21 Jul 2017 04:42:24 +0000 (12:42 +0800)
committeredward <edward@roojs.com>
Fri, 21 Jul 2017 04:42:24 +0000 (12:42 +0800)
Roo/bootstrap/Menu.js

index 0a8738f..21be9cf 100644 (file)
@@ -279,14 +279,13 @@ Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component,  {
         if(this.el.getWidth() + xy[0] > Roo.lib.Dom.getViewWidth()){
             xy[0] = xy[0] - this.el.getWidth() + this.triggerEl.getWidth();
         }
-        alert(this.el.getStyle('top').slice(-1));
+        
         if(this.el.getStyle('top').slice(-1) != "%"){
-            alert('run???');
             this.el.setXY(xy);
         }
         
-//        this.focus();
-//        this.fireEvent("show", this);
+        this.focus();
+        this.fireEvent("show", this);
     },
     
     focus : function(){