0
我想在面板内添加一个面板,但子面板始终处于隐藏状态。检查萤火虫我发现子面板的内容是存在的,但是因为它的宽度/高度没有设置,所以它不可见。这里是我的父面板子面板不可见
...{
items: [subCards]
}...
这里是我的子卡
var subCards = Ext.create('Ext.Panel', {
layout : {
type : 'card',
animation : {
type : 'slide',
direction: 'left'
}
},
activeItem: 0,
items: [
{
style: "background-color: #3f3f3f;",
html: 'Wellcome screen'
},
{
style: "background-color: #3f3f3f;",
html: 'SEcond screen'
},
{
html: "third screen"
},
{
html: '4th screen'
}
]
});