Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix(collapse): add the "in" class for expanded panels
Browse files Browse the repository at this point in the history
Closes #1192
  • Loading branch information
pkozlowski-opensource committed Nov 11, 2013
1 parent a72c635 commit 9eca35a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/collapse/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
Expand All @@ -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');
}
});
}
Expand All @@ -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);
Expand Down

0 comments on commit 9eca35a

Please sign in to comment.