Hello,
I have a list inside a panel that will not scroll through the list. It only seems to scroll through the first "page" (for lack of a better word). Then it seems to pop back to the beginning when you lift your finger.
What am I doing wrong? Thank You.
Code:
var listPanel = new Ext.Panel({
id : 'listPanel',
renderTo:'modaldiv',
floating : true,
centered : false,
height : 400,
width : 500,
layout : 'fit',
modal:true,
items: [{
xtype: 'list',
id : 'List1',
layout : 'fit',
styleHtmlContent: true,
emptyText: 'No Records were found ',
showAnimation: {
type: 'pop',
duration: 250
},
store: tabStore,
itemTpl: tpl,
onItemDisclosure: function(record, btn, index) {
var thisfield = Ext.getCmp(field);
thisfield.setValue(record.data.SCKEY);
listPanel.hide();
},
listeners:{
itemtap:function (record,x){
var thisfield = Ext.getCmp(field);
thisfield.setValue(record.store.data.items[x].A@KEY
}
}
}]
});
listPanel.showBy(field);
listPanel.show();