ExtJS container with border layout and dynamic height children

五迷三道 提交于 2019-12-21 21:45:30

问题


I would like to have a container with border layout (I need the split bar) with two regions, west and center. The west region contains a treepanel that can expand (because it's a treepanel) and I don't know the number of nodes. The center region is also a container that holds a grid and I don't know the number of rows. So both regions' height is unknown until the page is loaded. I also want the page to be scrollable in case one of the regions are bigger than the page. I managed to do so when the main container was without border layout and with autoHeight - although I know it's a bad solution.

Any1 has an idea? Thanks


回答1:


column layout would do what you want, but it wouldn't give you the split bar. I think the split bar needs to know the height of what it is splitting, so in order to get this working fully, you may have to add and control your own split bar.



来源:https://stackoverflow.com/questions/7161889/extjs-container-with-border-layout-and-dynamic-height-children

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!