Roo/bootstrap/Menu.js
authorjohn <john@roojs.com>
Fri, 17 Aug 2018 05:02:05 +0000 (13:02 +0800)
committerjohn <john@roojs.com>
Fri, 17 Aug 2018 05:02:05 +0000 (13:02 +0800)
Roo/bootstrap/Menu.js

index d64572d..3613cff 100644 (file)
@@ -291,8 +291,12 @@ Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component,  {
         
         // but the list may align on trigger left or trigger top... should it be a properity?
         
+        this.el.setXY(xy);
+        
         if(this.el.getStyle('top') != 'auto' && this.el.getStyle('top').slice(-1) != "%"){
+            
             this.el.setXY(xy);
+            
         }
         
         this.focus();