Roo/bootstrap/menu/Menu.js
authorEdward <edward@roojs.com>
Fri, 5 Dec 2014 04:43:39 +0000 (12:43 +0800)
committerEdward <edward@roojs.com>
Fri, 5 Dec 2014 04:43:39 +0000 (12:43 +0800)
Roo/bootstrap/menu/Menu.js

index 47dff5f..711ccf7 100644 (file)
@@ -67,6 +67,7 @@ Roo.extend(Roo.bootstrap.menu.Menu, Roo.bootstrap.Component,  {
     html : '',
     weight : 'default',
     icon : false,
+    pos : 'bottom',
     
     
     getChildContainer : function() {
@@ -122,6 +123,10 @@ Roo.extend(Roo.bootstrap.menu.Menu, Roo.bootstrap.Component,  {
             
         };
         
+        if(this.pos == 'top'){
+            cfg.cls += ' dropup';
+        }
+        
         if(this.isSubMenu()){
             cfg = {
                 tag : 'ul',