I am new to angular and ionic and facing a weird scroll issue with . The list seem to hang in the middle and doesn’t scroll up.
My code example has a ion-list containing a item “inline search” which does an autocomplete in production. For the demo I’ve used a hard coded list of fruit. Once you type in the search input, the same ion-list is extended with items (using ng-show if search length > 0).
Try to search something and click to select fruits. Select atleast 5-6 fruits.
Note: I’ve a feeling that the weird issue is because Search items are appended at the end of the ion-list and then removed.
Anyone, who can give a pointer as to what could be the problem?
I have the same problem - different UI. I am fairly convinced there is an issue with the scrolling in ionic. There is no problem when removing items from the scroll-view, but when adding. After adding an item, the scroll-view is offset so that I can’t scroll up to the top of the view, but I can scroll down a lot further than necessary (empty space).
EDIT:
I found the problem shortly after writing this note, which resulted in a new issue on github:
Got the very same problem, I can scroll far to the bottom without having any content and I can’t scroll to the very top of my view, where there is content. Seems that the ion-content element is resized after adding an element to the list and rendering it.