Roo/bootstrap/Menu.js
authoredward <edward@roojs.com>
Fri, 21 Jul 2017 05:07:14 +0000 (13:07 +0800)
committeredward <edward@roojs.com>
Fri, 21 Jul 2017 05:07:14 +0000 (13:07 +0800)
Roo/bootstrap/Menu.js

index 1080f76..ea5c166 100644 (file)
@@ -280,12 +280,18 @@ Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component,  {
             xy[0] = xy[0] - this.el.getWidth() + this.triggerEl.getWidth();
         }
         
-        alert(this.el.getStyle('top') * 1);
         
-        if(this.el.getStyle('top').slice(-1) != "%"){
+        if(!isNaN(this.el.getStyle('top') * 1)){
             this.el.setXY(xy);
         }
         
+        /*
+         * This not working on ios
+         */
+//        if(this.el.getStyle('top').slice(-1) != "%"){
+//            
+//        }
+        
         this.focus();
         this.fireEvent("show", this);
     },