roojs-bootstrap.js
[roojs1] / roojs-bootstrap-debug.js
index a2415bb..de8bf39 100644 (file)
@@ -3866,18 +3866,22 @@ Roo.extend(Roo.bootstrap.Navbar, Roo.bootstrap.Component,  {
                 if (ce.hasClass('collapse')) {
                     // show it...
                     ce.removeClass('collapse');
-                    ce.addClass('collapsing');
+                    ce.addClass('show');
                     var h = ce.getHeight();
                     Roo.log(h);
-                    ce.setHeight(0); // resize it ...
-                    ce.on('transitionend', function() {
+                    ce.removeClass('show');
+                    // at this point we should be able to see it..
+                    ce.addClass('collapsing');
                     
+                    ce.setHeight(0); // resize it ...
+                     (function() {
+                        Roo.log('done transition');
                         ce.removeClass('collapsing');
                         ce.addClass('show');
                         ce.removeClass('collapse');
 
                         ce.dom.style.height = '';
-                    }, this, { single: true} );
+                    }).defer(500);
                     ce.setHeight(h);
                     
                 } else {