Hybrid View

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    18
    Vote Rating
    0
    amussini@gmail.com is on a distinguished road

      0  

    Default Tabbar --> ListView height problem

    Tabbar --> ListView height problem


    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!

  2. #2
    Sencha User
    Join Date
    Feb 2012
    Posts
    18
    Vote Rating
    0
    amussini@gmail.com is on a distinguished road

      0  

    Default


    Addon: I tried also layout: { type: 'fit' } ... nothing

  3. #3
    Sencha User
    Join Date
    Jun 2011
    Posts
    350
    Vote Rating
    1
    bharatn is on a distinguished road

      0  

    Default


    Layout: fit is right. Make sure you are applying that to the parent of DataView.
    Bharat Nagwani
    Sencha Designer Development Team

Thread Participants: 1