From 75b8347a05fbe1196f60c771f14ba859315a78ee Mon Sep 17 00:00:00 2001 From: Phil Brown Date: Fri, 20 Apr 2012 14:50:29 +1000 Subject: [PATCH] Only set fixed pixel height where transitions are supported. fixes #2131 --- js/bootstrap-collapse.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/bootstrap-collapse.js b/js/bootstrap-collapse.js index 9a364468b7d4..d8beef836693 100644 --- a/js/bootstrap-collapse.js +++ b/js/bootstrap-collapse.js @@ -55,7 +55,7 @@ this.$element[dimension](0) this.transition('addClass', 'show', 'shown') - this.$element[dimension](this.$element[0][scroll]) + $.support.transition && this.$element[dimension](this.$element[0][scroll]) } @@ -135,4 +135,4 @@ }) }) -}( window.jQuery ); \ No newline at end of file +}( window.jQuery );