autoscroll funktioniert nicht mit vbox layout

Muss ich richten Sie die formpanels in die Mitte, so habe ich das vbox layout, und nachdem ich es benutzt habe die autoscroll-hat nicht funktioniert wie vorher, der code ist wie folgt:

 Usr.VWPanel = Ext.extend(Ext.Panel, {
        id: null,
        rid: null,
        closable: true,
        autoScroll: true,
        buttonAlign: 'center',
        layout: {
                type:'vbox',
                padding:'5',
                pack:'center',
                align:'center'
        },
        initComponent: function () {
            Ext.apply(this, {
                items: [
                {
                    xtype: 'spacer',
                    height: 16
                },
                {
                    xtype: 'usr.usrform',
                    itemId: 'usr.vwpain.usrformt',
                    width: 600,
                    height: 500
                },
                {
                    xtype:'spacer',
                    height: 16
                },
                {
                    xtype: 'usr.loginform',
                    itemId: 'usr.vwpain.loginform',
                    width: 600
                },
                {
                    xtype: 'spacer',
                    height: 16
                },
                {
                    xtype: 'usr.subsform',
                    itemId: 'usr.vwpain.subsform',
                    width: 600
                }],
...

plz beraten.

Fand dieses auf der Sencha-Foren: sencha.com/forum/archive/index.php/t-108868.html, Da VBox nicht unterstützt, autoScroll:true Vorschlag ist, dass Sie Anker. Nicht sicher, wie Sie würde erreichen, dass die Zentrierung obwohl...

InformationsquelleAutor mothee | 2010-12-28

Schreibe einen Kommentar