driftyco/ionic — pull request #2523 by quilligana (2014-12-03 11:43:48+00:00)
Title: Collection Repeat With Search Input

See my post on the [forum](http://forum.ionicframework.com/t/issue-filtering-items-in-collection-repeat-with-search-box/11804/1) which outlines an issue with re-rendering a collection-repeat list following a filter being applied through a search input. If I first scroll down the list and then enter the search term, the new filtered list is not scrolled to the top. You can reproduce in this [codepen](http://codepen.io/afq/pen/jiqcu). The items are all there and present but the scroll view doesn't seem to resize. If you delete the search input text and re-enter again, it all works fine as the scroll has been reset to the top of the list.

On a project I was working on, I implemented a temporary fix by adding `scrollView.scrollTo(0,0, false, null, true);` to the end of the `renderer(value)` function within the collectionRepeat directive in ionic.bundle.js.

I'm not sure if this is the best way to resolve this issue but if someone wants to advise/confirm the best solution, I will happily create a PR with a fix.