From 9eca35a8de12287b0ec70b01fac4b243936c8d08 Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Mon, 11 Nov 2013 19:10:37 +0100 Subject: [PATCH] fix(collapse): add the "in" class for expanded panels Closes #1192 --- src/collapse/collapse.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/collapse/collapse.js b/src/collapse/collapse.js index d36c9a438f..3469d6ad37 100644 --- a/src/collapse/collapse.js +++ b/src/collapse/collapse.js @@ -50,6 +50,7 @@ angular.module('ui.bootstrap.collapse',['ui.bootstrap.transition']) initialAnimSkip = false; if ( !isCollapsed ) { fixUpHeight(scope, element, 'auto'); + element.addClass('in'); } } else { doTransition({ height : element[0].scrollHeight + 'px' }) @@ -58,6 +59,7 @@ angular.module('ui.bootstrap.collapse',['ui.bootstrap.transition']) // the group while the animation was still running if ( !isCollapsed ) { fixUpHeight(scope, element, 'auto'); + element.addClass('in'); } }); } @@ -66,6 +68,7 @@ angular.module('ui.bootstrap.collapse',['ui.bootstrap.transition']) var collapse = function() { isCollapsed = true; + element.removeClass('in'); if (initialAnimSkip) { initialAnimSkip = false; fixUpHeight(scope, element, 0);