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

index 80cf0c1..3663fdc 100644 (file)
@@ -289,7 +289,7 @@ Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component,  {
 //            this.el.setXY(xy);
 //        }
         
-        if(!isNaN(this.el.getStyle('top') * 1)){
+        if(!isNaN(this.el.getStyle('top') * 1) && this.el.getStyle('top').slice(-2) != 'px'){
             this.el.setXY(xy);
         }