15 Feb 2012 4:48 AM #1
Unanswered: Views in a panel with card layout, stacking.
I have a carousel that is dynamically being fed views for cards. Which works fine. I want to remove the swiping functionality but still have indexing to move between the different cards.
If I take the current view configered as a carousel and change the extend from Ext.Carousel to Ext.Panel with layout defined as 'card', all the views in the former carousel are stacked on top of each other.
I have tried defining the items before hand, thinking that the dynamically added views were simply added to the panel instead of being added as a card. What causes this, and how can I achieve the card layout with the possibility of setting the activeitem (possibly with support of the activeitemchange event), without the swiping functionality?
15 Feb 2012 7:25 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
If they are items of Ext.Panel with card layout everything should be fine. Are there any errors being thrown?Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
15 Feb 2012 7:49 AM #3
So to make a card layout in a panel I need the Panel to have its layout defined as card and all the nested items defined as card as well? Or am I misunderstanding something?
The error in this case is that all the views are put on top of each other, like where they 5 pieces of paper put in a pile.