Roo/bootstrap/Navbar.js
authorAlan Knowles <alan@roojs.com>
Thu, 29 Nov 2018 05:09:48 +0000 (13:09 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 29 Nov 2018 05:09:48 +0000 (13:09 +0800)
Roo/bootstrap/Navbar.js

index 45b59f9..7c0720e 100644 (file)
@@ -55,17 +55,20 @@ Roo.extend(Roo.bootstrap.Navbar, Roo.bootstrap.Component,  {
                 if (ce.hasClass('collapse')) {
                     // show it...
                     ce.removeClass('collapse');
-                    ce.addClass('show');
+                    ce.addClass('collapsing');
+                    var h = ce.getHeight();
+                    ce.setHeight(0); // resize it ...
                     
                     ce.removeClass('collapsing');
                     ce.addClass('collapsing');
-                     ce.setHeight(ce.getHeight()); // resize it ...
-
+                     
                     // now flag it as moving..
                     
                     (function() {
                         ce.removeClass('collapsing');
                         ce.addClass('show');
+                        ce.removeClass('collapse');
+
                         ce.dom.style.height = '';
                     }).defer(500);
                 } else {