PDA

View Full Version : [INFOREQ] setScrollable(false) error on Carousel



mitchellsimoens
26 Aug 2010, 6:49 PM
I was trying to add a feature to an app to "lock" a Carousel and noticed in the API docs that there is a setScrollable() function so I attempted it with "false" and got this error:


Uncaught TypeError: Cannot call method 'destroy' of undefined on line 12889

The Carousel has 25 cards in it and direction: "vertical". Shouldn't matter but fyi.

evant
26 Aug 2010, 8:45 PM
Please post a short test case. I just ran the following with the latest Git build with no issue:



Ext.setup({
onReady: function() {
var c = new Ext.Carousel({
fullscreen: true,
items: [{
html: 'Foo'
}]
});
c.setScrollable(false);
}
});

mitchellsimoens
27 Aug 2010, 7:19 AM
Just tried your code using the 0.93 beta and it gives me the same error as my OP.