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

Commit

Permalink
fix(collapse): fixes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
pkozlowski-opensource committed Dec 28, 2013
1 parent e0426b9 commit dc02ad1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/collapse/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,8 @@ angular.module('ui.bootstrap.collapse', ['ui.bootstrap.transition'])
initialAnimSkip = false;
expandDone();
} else {
var targetElHeight = element[0].scrollHeight;
if (targetElHeight) {
element.removeClass('collapse').addClass('collapsing');
doTransition({ height: element[0].scrollHeight + 'px' }).then(expandDone);
} else {
expandDone();
}
element.removeClass('collapse').addClass('collapsing');
doTransition({ height: element[0].scrollHeight + 'px' }).then(expandDone);
}
}

Expand Down

0 comments on commit dc02ad1

Please sign in to comment.