-
13 Feb 2013 9:51 AM #11Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
- Answers
- 3113
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 @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
7 May 2013 6:23 AM #12
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:
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.Code:var me = this; if (typeof me.getItemMap == 'function'){ me.getScrollable().getScroller().on('refresh',function(scroller,eOpts){ me.setHeight(me.getItemMap().getTotalHeight()); }); }
Any help would be appreciated.
-
21 May 2013 6:31 AM #13
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!


Reply With Quote