Skip to content

Commit 618a5d7

Browse files
committed
amend(collectionRepeat): make sure it properly resizes on scroll
1 parent cd5a5ea commit 618a5d7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

js/angular/directive/collectionRepeat.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,8 @@ function CollectionRepeatDirective($ionicCollectionManager, $parse, $window, $$r
225225

226226
// Wait for this digest to end before refreshing everything.
227227
$timeout(function() {
228-
if (newValue.length) {
229-
refreshDimensions();
230-
}
231228
getRepeatManager().refreshData(newValue);
229+
if (newValue.length) refreshDimensions();
232230
}, 0, false);
233231
});
234232

@@ -493,8 +491,8 @@ function RepeatManagerFactory($rootScope, $window, $$rAF) {
493491

494492
isDataReady = true;
495493
if (isLayoutReady && isDataReady) {
494+
scrollView.resize();
496495
forceRerender();
497-
setTimeout(angular.bind(scrollView, scrollView.resize));
498496
}
499497
};
500498

0 commit comments

Comments
 (0)