diff --git a/js/angular/directive/collectionRepeat.js b/js/angular/directive/collectionRepeat.js index 8133a90075..bc76b1c3ff 100644 --- a/js/angular/directive/collectionRepeat.js +++ b/js/angular/directive/collectionRepeat.js @@ -225,10 +225,8 @@ function CollectionRepeatDirective($ionicCollectionManager, $parse, $window, $$r // Wait for this digest to end before refreshing everything. $timeout(function() { - if (newValue.length) { - refreshDimensions(); - } getRepeatManager().refreshData(newValue); + if (newValue.length) refreshDimensions(); }, 0, false); }); @@ -493,8 +491,8 @@ function RepeatManagerFactory($rootScope, $window, $$rAF) { isDataReady = true; if (isLayoutReady && isDataReady) { + scrollView.resize(); forceRerender(); - setTimeout(angular.bind(scrollView, scrollView.resize)); } };