docs/Roo.docs.template.js
[roojs1] / roojs-bootstrap-debug.js
index 427ef4e..8495ec6 100644 (file)
@@ -3964,17 +3964,19 @@ Roo.extend(Roo.bootstrap.Navbar, Roo.bootstrap.Component,  {
             ce.dom.style.height = '';
         }, this, { single: true} );
         ce.setHeight(h);
+        ce.dom.scrollTop = 0;
     },
     /**
      * Collapse the navbar pulldown 
      */
     collapse : function()
     {
-        
-        if (ce.hasClass('collapsing')) {
+         var ce = this.el.select('.navbar-collapse',true).first();
+       
+        if (ce.hasClass('collapsing') || ce.hasClass('collapse') ) {
+            // it's collapsed or collapsing..
             return;
         }
-        var ce = this.el.select('.navbar-collapse',true).first();
         ce.removeClass('in'); // old...
         ce.setHeight(ce.getHeight());
         ce.removeClass('show');