Roo/bootstrap/Menu.js
authorjohn <john@roojs.com>
Fri, 17 Aug 2018 04:56:24 +0000 (12:56 +0800)
committerjohn <john@roojs.com>
Fri, 17 Aug 2018 04:56:24 +0000 (12:56 +0800)
Roo/bootstrap/Menu.js

index d64572d..c668216 100644 (file)
@@ -279,6 +279,8 @@ Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component,  {
         this.hidden = false;
         this.triggerEl.addClass('open');
         
+        Roo.log(xy);
+        
         // reassign x when hitting right
         if(this.el.getWidth() + xy[0] >= Roo.lib.Dom.getViewWidth()){
             xy[0] = xy[0] - this.el.getWidth() + this.triggerEl.getWidth();
@@ -289,6 +291,8 @@ Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component,  {
             xy[1] = xy[1] - this.el.getHeight() - this.triggerEl.getHeight();
         }
         
+        Roo.log(xy);
+        
         // but the list may align on trigger left or trigger top... should it be a properity?
         
         if(this.el.getStyle('top') != 'auto' && this.el.getStyle('top').slice(-1) != "%"){