PDA

View Full Version : [CLOSED] Carosel Active Item does not seem functional



DonRul
28 Feb 2012, 4:35 PM
I have a main navigation panel that is an Ext.NavigationView. It has a NavigationBar and a carosel called maincarosel within it. The carosel has two items within it - each of them are linked to views.

When I change the ActiveItem in the designer the design view changes as expected.

After taking some action on Item 1 in the carosel (ordering a new test) successfully I want to switch back to the panel that is item 0. This seemed pretty straightforward:


var carosel = Ext.getCmp('maincarosel');
carosel.setActiveItem(0);

But it did not work.
What I noticed digging deeper is that when I look at what the active item is for the carosel it never changes from item 0 even when I swipe move the carosel back and forth. When I set a breakpoint onActiveItemChange directly on the carosel it is never triggered.

I tried this with no change in the behavior - the current carosel item (1) just sits there


var carosel = Ext.getCmp('maincarosel');
carosel.setActiveItem(1);
carosel.setActiveItem(0);

This behavior is the same on Chrome and Safari

DonRul
2 Apr 2012, 4:17 PM
This issue was caused by another function that was mistakenly eating events.

aconran
2 Apr 2012, 4:24 PM
This issue was caused by another function that was mistakenly eating events.

Thanks for letting us know, I'll mark this as closed.