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).
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
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.