1. #1
    Sencha User
    Join Date
    Dec 2012
    Vote Rating
    sbalbalosa is on a distinguished road


    Default Unanswered: How to scroll by default to a specific item of Ext.List in Sencha Touch 2.1

    Unanswered: How to scroll by default to a specific item of Ext.List in Sencha Touch 2.1


    I want to scroll to top of a specific item in a list when it first load, what I did in 2.0 is to sum the height of all the items on top of that specific item I want to scroll to and get the scroller of the list and set the default scroll of it using scrollBy method that has a parameter of Y axis in which I have passed the accumulated height. Now in 2.1 the list implementation is changed I can't sum the height of the items because the dom is resused and there is only a fix number of item that I can hold on unlike before that the whole list is rendered. Is there a any suggested way to do this maybe some type of cursor in the store so the list knows where to scroll by default?


  2. #2
    Sencha Premium Member
    Join Date
    Sep 2012
    The Netherlands
    Vote Rating
    zwikske is on a distinguished road



    Perhaps you could try to use setActiveItem(item)? That should set an item in the list active, though I'm not sure if it will scroll to it as well.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi