Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-909 in a recent build.
  1. #1
    Sencha User
    Join Date
    Dec 2007
    Posts
    23
    Vote Rating
    0
    kyr0 is on a distinguished road

      0  

    Default 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

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Looks like this was fixed in PR2.

    Sencha Inc

    Jamie Avins

    @jamieavins

Thread Participants: 1