1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    82
    Answers
    4
    Vote Rating
    3
    matfin is on a distinguished road

      0  

    Default Unanswered: Secnah Touch 2.1: Setting height on List items in Ext.dataview.list dynamically

    Unanswered: Secnah Touch 2.1: Setting height on List items in Ext.dataview.list dynamically


    Hi,

    I have reverted to using the xtype Ext.dataview.List for displaying a list of stories in my app due to the fact that PullRefresh Support for DataViews has been pulled in Sencha Touch 2.1.

    With the rewriting of the inner working of Ext.List they have added a new itemHeight variable to control the height of the list item, but this is unsuitable in my case because I need each list item to stretch to the correct height according to the content within it.

    Is this supported and if so, how can I do it? Trying also to figure out if I can do this in CSS.

    Thanks,

    Matt

  2. #2
    Touch Premium Member BostonMerlin's Avatar
    Join Date
    Aug 2010
    Location
    Boston
    Posts
    522
    Answers
    20
    Vote Rating
    41
    BostonMerlin has a spectacular aura about BostonMerlin has a spectacular aura about BostonMerlin has a spectacular aura about

      0  

    Default


    try the lists 'variable heights' property. new in 2.1

  3. #3
    Sencha - Support Team
    Join Date
    Mar 2012
    Location
    Lawrence, KS
    Posts
    245
    Answers
    36
    Vote Rating
    31
    greg.barry has a spectacular aura about greg.barry has a spectacular aura about

      0  

    Default


    That's correct, you can read more about variableHeights here:
    http://docs.sencha.com/touch/2-1/#!/...ariableHeights