mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
amend(collectionRepeat): only refreshDimensions after element has
entered
This commit is contained in:
6
js/angular/directive/collectionRepeat.js
vendored
6
js/angular/directive/collectionRepeat.js
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user