我是新的extjs,只是卡在动态(百分比)高度在hbox设置。extjs集装箱hbox高度100%
这里是我的ExtJS的代码
"xtype": "container",
"layout": "fit",
"width": "100%",
"height": "100%",
"cls": "dashboard-layout dashboard-layout-1-2",
"items": [
{
"xtype": "dashboardpanelcontainer",
"height": "45%"
},
{
"xtype": "container",
"layout": "fit",
"width": "100%",
"height": "45%",
"layout":
{
"type": "hbox",
"align": "stretch"
},
"items": [
{
"xtype": "dashboardpanelcontainer",
"flex": 1
},
{
"xtype": "ruban-dashboardpanelcontainer",
"flex": 1
}]
}]
代码这个和平是工作的罚款,并设置高45%
"xtype": "dashboardpanelcontainer",
"height": "45%"
的容器“的xtype”第二项:“容器”的设置高度为45%,但hbox项目不选择这个45%,hbox项目的高度是0px
我不能使用“xtype”:“窗口”或“xtype”:“视口”需要里面的“xtype”:“风ow“
任何帮助如何在我的情况下设置容器hbox项目高度的百分比45%。
如果我在hbox中添加项目的风格,它不是工作压力太大
"xtype": "dashboardpanelcontainer",
"flex": 1,
"style":
{
"height": "100%"
}
感谢您的帮助
[在横向盒ExtJS的100%的高度(可能重复http://stackoverflow.com/questions/21704630/extjs-100-height-in - 盒) – Akatum
我看到了,答案是谁的人可以使用“xtype”:“视口”,很不幸,我不能使用视口,我使用“xtype”:“容器” – user2894127