mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(collectionRepeat): fix faulty tests
This commit is contained in:
3
js/angular/directive/collectionRepeat.js
vendored
3
js/angular/directive/collectionRepeat.js
vendored
@@ -202,7 +202,6 @@ function CollectionRepeatDirective($ionicCollectionManager, $parse, $window, $$r
|
||||
}
|
||||
}
|
||||
function refreshDimensions() {
|
||||
console.log('refreshDimensions', validateResize.height, validateResize.width);
|
||||
if (heightData.computed || widthData.computed) {
|
||||
computeStyleDimensions();
|
||||
}
|
||||
@@ -450,7 +449,7 @@ function RepeatManagerFactory($rootScope, $window, $$rAF) {
|
||||
isDataReady = true;
|
||||
if (isLayoutReady && isDataReady) {
|
||||
forceRerender();
|
||||
setTimeout(scrollView.resize.bind(scrollView));
|
||||
setTimeout(angular.bind(scrollView, scrollView.resize));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user