在Sencha Touch工具栏中左右对齐按钮

Ryu*_*yuk 5 extjs sencha-touch sencha-touch-2

如何在左右两侧的Sencha Touch工具栏中对齐按钮(每侧一个按钮)?

在ExtJs中,我曾经使用' - >'.但这似乎在Sencha Touch中不起作用.

有任何想法吗 ?

编辑 按钮图像不完全右对齐应该出现在这里

编辑这里是我的代码

Ext.define('reestructura.view.ContratoList', {
    extend: 'Ext.List',
    xtype: 'contratolist',
    requires: 'Ext.field.Toggle',
    config: {
        onItemDisclosure: true,
        emptyText: 'El contrato no existe',
        store: 'Contratos',
        items: [{
            xtype: 'toolbar',
            docked: 'top',
            style: 'background:darkgray',
            items: [{
                xtype: 'searchfield',
                placeHolder: 'Buscar contrato...'
            }, {
                xtype: 'button',
                iconCls: 'search',
                iconMask: true,
                ui: 'confirm',
                action: 'buscarContratos'
            },

            {
                xtype:'spacer'
            },
            {
                xtype: 'togglefield',
                label: 'simulación'
            }
            ]
        }],

        itemTpl : [
        '<p>{idContrato}&nbsp &nbsp {nombreGrupo} </p>',
        '<div style="font-size: 0.75em; color: darkgray">Saldo Pendiente: {saldoPendiente}</div>',  
        ].join('')

    }

});
Run Code Online (Sandbox Code Playgroud)

Dar*_*rly 8

使用spacer这是一个例子

            {
                xtype: 'button',
                text: 'Button One'
            }, {
                xtype: 'spacer'
            }, {
                xtype: 'button',
                text: 'Button Two'
            }
Run Code Online (Sandbox Code Playgroud)

我希望有所帮助