Skip to content

Commit

Permalink
amend(collectionRepeat): make sure it properly resizes on scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed Mar 5, 2015
1 parent cd5a5ea commit 618a5d7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/angular/directive/collectionRepeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

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

isDataReady = true;
if (isLayoutReady && isDataReady) {
scrollView.resize();
forceRerender();
setTimeout(angular.bind(scrollView, scrollView.resize));
}
};

Expand Down

0 comments on commit 618a5d7

Please sign in to comment.