From 91a7274a43836484cdf27e34c45856e4b715f778 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 2 Jun 2012 21:26:34 -0700 Subject: [PATCH] only set height explicitly for collapse when animation is supported #2131 --- js/bootstrap-collapse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/bootstrap-collapse.js b/js/bootstrap-collapse.js index da64a3238a..45eea2906e 100644 --- a/js/bootstrap-collapse.js +++ b/js/bootstrap-collapse.js @@ -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 () {