View Full Version : [FIXED] Ext.layout.Card, Ext.carousel.Carousel / setActiveIndex(), next(), prev() wrong cmp

19 Oct 2011, 10:18 AM
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

Jamie Avins
11 Nov 2011, 10:45 AM
Looks like this was fixed in PR2.