これについてどうすればよいかわかりませんし、機能していませbuttonAlign: 'center'んpack: 'center'。フィドル: http://jsfiddle.net/3Ytp9/
			
			1939 次
		
3 に答える
            1        
        
		
ボタングループのレイアウトプロパティを使用します。
    layout: {
        type: 'vbox',
        align: 'center'
    }
分岐したフィドルを参照してください: https://fiddle.sencha.com/#fiddle/1cm
于 2013-11-05T10:54:34.420   に答える
    
    
            1        
        
		
パネルの下部にあるツールバーの使用を検討しましたか?
https://fiddle.sencha.com/#fiddle/1c0 (mvc パターンなし)
次のようなものも使用できます。
        dockedItems: [{
        xtype: 'toolbar',
        layout: {
            pack: 'center'
        },
        defaultButtonUI: 'default', // get default look and feel
        dock: 'bottom',
        items: [{
            xtype: 'button',
            width: 200,           
            text: 'Download to Excel',
        },{
            xtype: 'button',
            width: 200,           
            text: 'Another action',
        }]
よろしくお願いします。
于 2013-11-04T20:29:50.720   に答える
    
    
            0        
        
		
試す:
Ext.onReady(function() {
  var panel = Ext.create('Ext.form.Panel', {
    renderTo: Ext.getBody(),
    title: 'Button group',
    border: true,
    layout: {
        align: 'middle',
        pack: 'center',
        type: 'hbox'
    },
    width: 500,
    items: [{
        xtype: 'buttongroup',
        columns: 1,
        items: [{
            xtype: 'button',
            text: 'Go'
        }, {
            xtype: 'button',
            text: 'Reset'
        }]
    }]
 });
});
ボタンを並べて配置するには、削除しますcolumns:1。また、JSFiddle での Ext JS の実装はひどいので、あまり依存しないでください。
于 2013-11-04T16:51:22.433   に答える