PDA

View Full Version : Tabbar --> ListView height problem



amussini@gmail.com
1 Mar 2012, 6:47 AM
I'd need a hand on this problem.
I'm using Sencha Designer and I find it awesome, I created my beatiful tabbar, I created my store, everything is loaded correctly.

Now in "Views" I have on item: MyTabPanel. Great, inside that I have a TabBar and 3 items.
I associated to those 3 items a Panel, with a HTML code inside.
This works perfecty.

Now I want to put inside the first panel, instead of pure HTML, a DataView or a List.
They are loaded correctly from the Sencha Twitter post json file.

My question is: how I can give the DataView a 100% height, or, anyway, to resize automatically?
If I give 200pixel height, it's shown correctly and items are loaded. But I want to be 100%, from the TitleBar to the TabBar on the bottom!

I tried height: auto, height:100%. Nothing happens, simply it's not shown.
If I apply a fixed height, evertything works.

Is the Designer kidding me? Has it a sense of humour? :)

Thanks!

amussini@gmail.com
1 Mar 2012, 6:50 AM
Addon: I tried also layout: { type: 'fit' } ... nothing

bharatn
1 Mar 2012, 8:47 AM
Layout: fit is right. Make sure you are applying that to the parent of DataView.