amend(collectionRepeat): make sure it properly resizes on scroll

This commit is contained in:
Andrew
2015-03-05 08:57:38 -07:00
parent cd5a5ead57
commit 618a5d7084

View File

@@ -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));
}
};