You need to sign in to do that
Don't have an account?
kmorf_entransform
sencha touch 2 carousel not swiping
Im using this sencha touch 2 carousel component in my application. initialy the carousel works percetly, but if you leave the page then comback to the page with the carousel, the carousel starts misbehaving. The carousel no longer is swipable. sometimes the contents of the carousel do not even appear.
var pan = Ext.getCmp('myCar'); var items = []; for (var i = 0; i < records.length; i++){ var item = Ext.create('Ext.Panel',{ html:'<p class = "inspirationMessage"><b>'+ records[i].data.message + '</b></p>' + '<p class = "authorName"><b>' + records[i].raw.Author__r.Name + '</b></p>', cls:'carouselPanel' }); items.push(item); } localCarousel.setItems(items); localCarousel.setActiveItem(0); pan.add(localCarousel); //pan.setItems(items); //pan.setActiveItem(0); });
{xtype : 'panel', id:'myCar', padding:'0 0 0 0', cls:'carouselPanel', styleHtmlContent:true, height:100 }