]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
only set height explicitly for collapse when animation is supported #2131
authorJacob Thornton <jacobthornton@gmail.com>
Sun, 3 Jun 2012 04:26:34 +0000 (21:26 -0700)
committerJacob Thornton <jacobthornton@gmail.com>
Sun, 3 Jun 2012 04:26:34 +0000 (21:26 -0700)
js/bootstrap-collapse.js

index da64a3238a0a179f64ee6d9bbaee0fe769e1a9ae..45eea2906eb5a20180fe9d3680a50b782673de85 100644 (file)
@@ -67,7 +67,7 @@
 
       this.$element[dimension](0)
       this.transition('addClass', $.Event('show'), 'shown')
-      this.$element[dimension](this.$element[0][scroll])
+      $.support.transition && this.$element[dimension](this.$element[0][scroll])
     }
 
   , hide: function () {