PDA

View Full Version : Dataview scroll not working (bug?)



d1984
31 Oct 2011, 2:51 AM
I have a simple dataview set up with scroll set to vertical and when I try to scroll up or down it does so but when I release my finger from the screen the scroller goes straight back up to the top of the component. So anything that is half a screen below the height of the screen cannot be seen.

Is there a workaround to this?


informationdataview = new Ext.DataView({
id: 'informationdataview',
itemSelector: 'div.thumb-wrap',
tpl: informationtpl,
autoHeight:true,
layout: 'fit',
store: myapp.stores.information,
scroll: 'vertical' });

And it's the only item inside an Ext.Panel (which also has scroll set to vertical)

mitchellsimoens
1 Nov 2011, 5:00 AM
You should only have one component that has scroll which should be the DataView. The Panel should use Fit layout (or CardLayout)

mitchellsimoens
1 Nov 2011, 5:56 AM
Please do not double post.