Skip to content

Commit

Permalink
fix(collectionRepeat): resize scrollView when data changes
Browse files Browse the repository at this point in the history
Closes #2523
  • Loading branch information
ajoslin committed Feb 24, 2015
1 parent 6c8c675 commit 88aebad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/angular/directive/collectionRepeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ function RepeatManagerFactory($rootScope, $window, $$rAF) {

isDataReady = true;
if (isLayoutReady && isDataReady) {
scrollView.resize();
forceRerender();
}
};
Expand Down
2 changes: 1 addition & 1 deletion test/html/collection-repeat/contacts.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1 class="title">3000 Contacts B</h1>
</ion-header-bar>
<ion-header-bar class="bar-subheader item-input-inset">
<label class="item-input-wrapper">
<input type="text" ng-model="filter" ng-change="scrollTop()" placeholder="Filter Contacts..." type="search">
<input type="text" ng-model="filter" placeholder="Filter Contacts..." type="search">
</label>
</ion-header-bar>
<ion-content direction="y">
Expand Down

0 comments on commit 88aebad

Please sign in to comment.