I am new in extjs and just stuck on dynamic (percent) height in hbox setting.
here is my extjs code
"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
}]
}]
this peace of code is working fine and setting height to 45%
"xtype": "dashboardpanelcontainer",
"height": "45%"
second item as a container "xtype": "container" is setting height to 45% too, but the hbox items are not picking this 45%, the height of the hbox items are 0px
I cant use "xtype": "window" or "xtype": "viewport" needs to be inside "xtype": "window"
Any help how to set container hbox item height as percentage in my case 45%.
If i add style in hbox item, its not working too
"xtype": "dashboardpanelcontainer",
"flex": 1,
"style":
{
"height": "100%"
}
Thanks for the help