-
19 Oct 2011 10:18 AM #1
Ext.layout.Card, Ext.carousel.Carousel / setActiveIndex(), next(), prev() wrong cmp
Ext.layout.Card, Ext.carousel.Carousel / setActiveIndex(), next(), prev() wrong cmp
Both, Panels using Ext.layout.Card and the Ext.carousel.Carousel component have problems to display the right component when using next(), prev(), setActiveItem(cmp).
Every time I used the API I had a $taget -1 problem. If I have a config like:
items: [{
id: 'card1'
}, {
id: 'card2'
}, {
id: 'card3'
}]
Then a setActiveItem(Ext.getCmp('card2')) call will result in showing card1.
Also when using next() and prev() it is always the component with an index one below the selected one.
Thanks & Regards
-
11 Nov 2011 10:45 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,653
- Vote Rating
- 14
Looks like this was fixed in PR2.
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-909
in
2.0.


Reply With Quote