Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ListView scrolling issue in Blackberry 10 SDK beta 2

I need to add new items in my ListView and scroll it automatically. I created an application and it worked well for SDK Beta 1, but it doesn't work properly for Beta 2. For example, I have 20 items in ListView and the first 5 of them are visible on the screen. If I call from my C++ method something like:

listView->scrollTo(ScrollPosition::End)

I can see only the last item on the top of ListView. I can scroll it down manually and it will work well, but I can't do the same from code.

like image 693
user1598082 Avatar asked Nov 14 '22 00:11

user1598082


1 Answers

The API documentation is not explicit, but does imply the behaviour you are seeing. You may want to use an alternate method: scrollToItem()

like image 106
Richard Avatar answered Jan 09 '23 16:01

Richard