Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: How to get a list and another container with content to display in a scrollable view

  1. #11
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    The odd jumping is because you have 2 scrollable components at work, the list and the list's parent. Default height of a list row is 47px so if no grouping the 47 * store.getCount() = list height but that's really just a hack.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  2. #12
    Sencha User
    Join Date
    Dec 2012
    Posts
    77
    Answers
    6
    Vote Rating
    2
      0  

    Default

    After upgrading to ST2.2 in the hopes that lists would be much improved, I have run into the issue once again of the list not displaying. I had used a solution from elsewhere by extracting the list into a separate view and adding this code on initialize so that it would calculate the height of list elements:

    Code:
    var me = this;
            if (typeof me.getItemMap == 'function'){
                me.getScrollable().getScroller().on('refresh',function(scroller,eOpts){
                    me.setHeight(me.getItemMap().getTotalHeight());
                });
            }
    The code above no longer works and I'm not sure how to get the list to display. When I add a min-height, it displays but only to the size of the min-height and doesn't scale to the content within it.

    Any help would be appreciated.

  3. #13
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    1
    Vote Rating
    0
      0  

    Post

    Hi, I'm also having the same issue with ST 2.2, but that hack isn't suitable for me as I'm also grouping my list, so the group headers take up the given space for the items!

    If anyone knows anything about this please shout!

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •