<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'>Well, the response was underwhelming...<br><br>In any case, I sort of solved my issue by using the currentItem/Index way, although when adding the first new item, I do get a strange delay before the animation kicks in. When adding items after that, it works fine.<br><br>Chris<br><div id="1"><br>---- On Fri, 28 Feb 2014 11:12:02 +0200 <b>chriswilty <chriswilty@zoho.com></b> wrote ---- <br></div><br><blockquote style="border-left: 1px solid #0000FF; padding-left: 6px; margin:0 0 0 5px"><div><div style="font-size:10pt;font-family:verdana,arial,helvetica,sans-serif;">Excuse the noobie question, I must be doing something obviously wrong... So hopefully the old hands can help.<br><br>I have a SilicaListView backed by a ListModel, and a pulley-menu command to add an item to the end of the model via ListModel.append(). After adding, I want to scroll the SilicaListView to the bottom to make the newly added item visible. So I thought using scrollToBottom() would do just that:<br><br>function addNewItem() {<br>  myListModel.append({ "role1": 0, "role2": 0 });<br>  mySilicaListView.scrollToBottom();<br>}<br><br>However, the view scrolls to the item above the one I just added, as if the view has not yet updated. Should I be binding the scrollToBottom() call to ListView.onAdd() instead? And if so, should I do that in my function so that it is only bound when first needed, for efficiency reasons? Or am I doing this all wrong, should I be using currentItem and highlightFollowsCurrentItem instead?<br><br>Many thanks,<br>Chris<br></div>_______________________________________________ <br>SailfishOS.org Devel mailing list</div></blockquote><br></div></body></html>