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

index 3663fdc..5cd705e 100644 (file)
@@ -282,14 +282,7 @@ Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component,  {
         
         var test = '100px';
         
-        /*
-         * This not working on ios
-         */
-//        if(this.el.getStyle('top').slice(-1) != "%"){
-//            this.el.setXY(xy);
-//        }
-        
-        if(!isNaN(this.el.getStyle('top') * 1) && this.el.getStyle('top').slice(-2) != 'px'){
+        if(this.el.getStyle('top').slice(-1) != "%"){
             this.el.setXY(xy);
         }