内部にいくつかのサブパネルがある Panel ビューにカルーセルを追加しようとしています。コードを実行すると、カルーセルから何も見えません。他のパネルは問題なく表示されます。ここに私が今持っているコードがあります
Ext.define('app.view.HeroDetail', {
extend: 'Ext.Panel',
requires: ['Ext.Carousel'],
xtype: 'herodetail',
layout: 'vbox',
fullscreen: true,
config: {
items: [
{
xtype: 'panel',
html: 'first panel',
flex: 1
},
{
xtype: 'carousel',
items: [
{
xtype: 'panel',
html: 'carousel1'
},
{
xtype: 'panel',
html: 'carousel2'
}
],
flex: 1
},
{
xtype: 'panel',
html: 'second panel',
flex: 1
}
]
}
});
ここで何が欠けていますか?