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

Commit d3df1fa

Browse files
SidhNorpkozlowski-opensource
authored andcommitted
Revert "Fixed issue #82"
This reverts commit 228eeee.
1 parent 39def8d commit d3df1fa

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/collapse/collapse.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,6 @@ angular.module('ui.bootstrap.collapse',['ui.bootstrap.transition'])
2222

2323
var isCollapsed;
2424

25-
var initialHeightVal = element[0].scrollHeight;
26-
var heightProperlyInitialized = false;
27-
28-
scope.$watch(function (){ return initialHeightVal != element[0].scrollHeight}, function (value) {
29-
//The listener is called when angular bindings are being resolved
30-
//When we have a change of height after binding we are setting again the correct height if the group is opened
31-
if (value && !heightProperlyInitialized) {
32-
heightProperlyInitialized = true;
33-
if (!isCollapsed) {
34-
doTransition({ height : element[0].scrollHeight + 'px' });
35-
}
36-
}
37-
});
38-
3925
scope.$watch(attrs.collapse, function(value) {
4026
if (value) {
4127
collapse();

0 commit comments

Comments
 (0)