vendredi 10 octobre 2014

Dataview scroll go back to the top

Hi,

I'm using Sencha Touch 2.3.0 for an application made with Cordova.

On some phone, a dataview can't scroll: after releasing the screen, the list scrolls back to the top.

But on some other phone, the scroll works well.



Code:



Ext.define('app.view.listeAniContainer', { extend: 'Ext.Panel',
alias: 'widget.listeAniContainer',


config: {
docked: 'top',
height: '100%',
itemId: 'listeAniCtn',
items: [
{
xtype: 'dataview',
docked: 'top',
height: '100%',
itemId: 'listeAni',
defaultType: 'listeanidataitem',
useComponents: true,
items: [
{
xtype: 'toolbar',
docked: 'top',
height: '10%',
itemId: 'searchAniToolbar',
items: [
{
xtype: 'numberfield',
itemId: 'searchAniField',
width: '100%',
name: 'searchAniField'
}
]
}
]
}
]
}


});

The container "listeAniContainer" is a card in a container (with card layout).

How can be sure to have the scroll on the dataview?

thx






Dataview scroll go back to the top

Aucun commentaire:

Enregistrer un commentaire