PDA

View Full Version : list not scrolling



nofx
13 Sep 2011, 6:35 AM
I have a list, which scrolls perfectly when it's set to fullscreen:true and flex:1.

But i want to set the height of my list to 300. But when i don't use fullscreen and use my own custom height, then scrolling isn't working anymore...

Any solution for this..?

grubby69
13 Sep 2011, 6:49 AM
Could you post the code?
Maybe I had asimilar problem and after was resolved..

nofx
13 Sep 2011, 7:00 AM
It's basically this piece:



xtype: 'list',
fullscreen: true,
flex: 1,
scroll: 'vertical',


This is what i currently have and works.

This is what i want, but then the scroll doesn't work:



xtype: 'list',
height: screen.height - 140,
layout: 'fit',
scroll: 'vertical',

grubby69
13 Sep 2011, 7:15 AM
Thanks.
I am really new in Touch but I know that you have to set the layout of your Panel (I think your list is in a panel,with 'fit' or 'card' ,choosing from what you want to do.
Is set that layout?

Because I had a problem in which the list doesn't scroll down and stay attach to the top,where I had a Top toolbar docked and one in the bottom.

So I set an items for the list and 2 dockeditems for the toolbar ,all inside a panel with fit layout.
Hope it helps your problem....

Bye