1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    6
    Vote Rating
    0
    Answers
    1
    patelsan is on a distinguished road

      0  

    Exclamation Answered: Container - inner Div doesn't have height atribute

    Answered: Container - inner Div doesn't have height atribute


    Hello,
    My view extends Container, I am inserting NestedList in this container. I would like my NestedList to take 100% height. The problem is - Container generates another Div with class "x-inner" which doesn't have Height atribute in style. I have tried applying all Layout and Scrollable options to Container, however this auto-generated Div as a part of Container is not adding any Height attribute in style. This prevents my NestedList from rendering as height remains 0, because its parent doen't have any Height attribute. I have spent few hours on this, really appreciate your thoughts on this. (for further clarification about my layout - My Container is pushed to the NavigationView and this NavigationView is a TabPanel item).

    Thanks in advance for any hints.

  2. Give the container fit layout.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,582
    Vote Rating
    433
    Answers
    3102
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Give the container fit layout.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    6
    Vote Rating
    0
    Answers
    1
    patelsan is on a distinguished road

      0  

    Default


    Mitchell, I did tried earlier with 'fit' layout for Container. I have a nested layout (TabPanel > NavigationView > Container > NestedList), could that be causing this? You can see DOM of my view in following screenshot, any thoughts? Thanks in advance.SenchaNestedList.jpg

  5. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    6
    Vote Rating
    0
    Answers
    1
    patelsan is on a distinguished road

      0  

    Default


    Mitchell, my bad, after replying I realized that I am using Ext.define and specifying layout at the root level instead of under the config. It is working as expected now. I am marking your reply as answer, Thank You.

Tags for this Thread