ExtJS容器带有边框布局和动态高度的孩子 [英] ExtJS container with border layout and dynamic height children

查看:119
本文介绍了ExtJS容器带有边框布局和动态高度的孩子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个带有边框布局的容器(我需要拆分栏),有两个区域,西边和中间。
西区包含一个可以扩展的treepanel(因为它是一个treepanel),我不知道节点的数量。中心区域也是一个容纳网格的容器,我不知道行数。
所以这两个区域的高度是未知的,直到页面被加载。
我也希望页面是可滚动的,以防其中一个区域大于页面。当主容器没有边框布局和autoHeight时,我设法这样做 - 虽然我知道这是一个坏的解决方案。

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有一个想法?
感谢

Any1 has an idea? Thanks

推荐答案

布局会做你想要的,但它不会给你分裂吧。我认为拆分栏需要知道分割的高度,所以为了充分发挥作用,您可能需要添加和控制自己的拆分栏。

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.

这篇关于ExtJS容器带有边框布局和动态高度的孩子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆