From 142a22b124e5af644414faa8611957aeebb8aeb4 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 24 Feb 2015 13:59:13 -0700 Subject: [PATCH] amend(collectionRepeat): refresh dimensions on scope reconnect --- js/angular/directive/collectionRepeat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/angular/directive/collectionRepeat.js b/js/angular/directive/collectionRepeat.js index b28ff2be59..f181111798 100644 --- a/js/angular/directive/collectionRepeat.js +++ b/js/angular/directive/collectionRepeat.js @@ -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'); } }