嗨 StackOverFlow 社区,
好吧,也许是我忘记阅读的理论,但我不明白为什么下面的代码没有显示任何内容。(我已经在论坛中尝试了其他答案,例如配置高度手册和布局适合工作,但是使用这些布局我无法做我想做的事)。
代码:
Ext.define('myMoney.view.Settings',{
    extend: 'Ext.Panel', //--> Ext.Container don't work either
    fullscreen: true,
    xtype: 'configuracion',
    config: {
        title: 'Configuracion',
        iconCls: 'settings',
        scrollable: true,
        styleHtmlContent: true,
        layout: {
            type: 'vbox',
            align: 'middle'
        },
        defaults: {
            width: '50%',
            height: '50%',
            flex:1,
        },
        items: [
            {
                xtype: 'list',
                itemTpl: '{item}',
                data: [
                    {item: 'Cuentas Actuales'},
                    {item: 'Agregar nueva Cuenta'},
                ]
            },
        ]
    }
});
真正的代码在列表之前有两个“字段集”,但我不想给你们看太长的代码。所以,有人知道会发生什么吗?