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

index 5cd705e..ce7fca9 100644 (file)
@@ -282,7 +282,7 @@ Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component,  {
         
         var test = '100px';
         
-        if(this.el.getStyle('top').slice(-1) != "%"){
+        if(this.el.getStyle('top') != 'auto' && this.el.getStyle('top').slice(-1) != "%"){
             this.el.setXY(xy);
         }