amend(collectionRepeat): refresh dimensions on scope reconnect

This commit is contained in:
Andrew
2015-02-24 13:59:13 -07:00
parent 3befdd7429
commit 142a22b124

View File

@@ -190,7 +190,7 @@ function CollectionRepeatDirective($ionicCollectionManager, $parse, $window) {
repeatManager = null;
});
scope.$on('$ionic.reconnectScope', function() {
if (refreshDimensions.queued) refreshDimensions();
refreshDimensions();
});
// Make sure this resize actually changed the size of the screen
@@ -510,8 +510,8 @@ function RepeatManagerFactory($rootScope, $window, $$rAF) {
item = itemsShownMap[i];
delete itemsShownMap[i];
itemsLeaving.push(item);
item.scope.$broadcast('$collectionRepeatChange');
item.isShown = false;
item.scope.$broadcast('$collectionRepeatChange');
}
}