function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kmorf_entransformkmorf_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
}