From 1061ea7d0e236aefcf56f33c190a4c308a45314c Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 24 Feb 2015 14:03:32 -0700 Subject: [PATCH] amend(collectionRepeat): only refreshDimensions after element has entered --- js/angular/directive/collectionRepeat.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/angular/directive/collectionRepeat.js b/js/angular/directive/collectionRepeat.js index f181111798..47740e2d57 100644 --- a/js/angular/directive/collectionRepeat.js +++ b/js/angular/directive/collectionRepeat.js @@ -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