amend(collectionRepeat): only refreshDimensions after element has

entered
This commit is contained in:
Andrew
2015-02-24 14:03:32 -07:00
parent 142a22b124
commit 1061ea7d0e

View File

@@ -190,7 +190,11 @@ function CollectionRepeatDirective($ionicCollectionManager, $parse, $window) {
repeatManager = null;
});
scope.$on('$ionic.reconnectScope', function() {
refreshDimensions();
if (refreshDimensions.queued) {
$$rAF(function() {
$$rAF(refreshDimensions);
});
}
});
// Make sure this resize actually changed the size of the screen