1

Mitchell Simoens git リンクから Sencha Touch 1.0.1 のアコーディオン レイアウトを使用しています: https://github.com/mitchellsimoens/Ext.layout.AccordionLayout

アコーディオンアイテムの1つにフォームパネルを入れたいです。しかし、formPanel の html は表示されますが、パネルに項目を追加すると空白になります。

助けてください!!

私のコード:

var formp = new Ext.form.FormPanel({
scroll : "vertical",
title : "List Test",
//    scrollable : true,
items : [
    {
        xtype : 'textfield',
        label : 'hello',
        id : 'hello',
        name : 'hello'
    }
  ]
});
 var panel = new Ext.Panel({
        fullscreen : true,
        scroll     : "vertical",
        layout     : {
            type :  "accordion"
        },
                    minHeight : 300,
        items: [
            { xtype : "panel", title : "One Title",   html : "One"   },
            list,
            { xtype : "panel", title : "Three Title", html : "Three" },
            { xtype : "panel", title : "Four Title",  html : "Four"  },
            { xtype : "panel", title : "Five Title",  html : "Five"  },
            { xtype : "panel", title : "Six Title",   html : "Six"   }
        ]
    });
4

1 に答える 1

0

このライブラリを更新して、このレイアウトで発生したいくつかの問題を修正したので、これで問題が解決するかどうかを確認できます

http://pastebin.com/fGRMBMfn

アップデート:

new Ext.Application({
    launch : function() {
        var panel = new Ext.Panel({
                fullscreen : true,
                scroll     : "vertical",
                layout     : {
                    type :  "accordion"
                },
                minHeight : 300,
                renderTo : Ext.getBody(),
                items: [
                    { xtype : "panel", title : "One Title",   html : "One"   },
                    { xtype : "panel", title : "Three Title", html : "Three" },
                    { xtype : "panel", title : "Four Title",  html : "Four"  },
                    { xtype : "panel", title : "Five Title",  html : "Five"  },
                    { xtype : "panel", title : "Six Title",   html : "Six"   }
                ]
            });
    }
});
于 2012-03-12T09:05:34.223 に答える