Sencha ExtJS如何在同一行上具有两个按钮和文本

时间:2018-10-05 15:36:42

标签: extjs sencha-touch

下面的代码中,两个按钮和文本彼此重叠,我需要将文本移到按钮底部的旁边。我该如何实现?

enter image description here

  items: [{
            region: 'south',
            xtype: 'container',
            items: [{}],
            }, {
                xtype: 'container',
                html: 'sadfaasvdsavdassdf<br>saavsdsavdfasdfas'
            }]
    }],

1 个答案:

答案 0 :(得分:0)

在下面的工作中,关键是使用列宽,当它们分别设置为0.5时,它不合适,所以我将其设置为0.49

}, {
        region: 'south',
        xtype: 'container',
        layout: 'column',
        items: [{
            height: 50,
            xtype: 'container',
            columnWidth: 0.49,
        }, {
            xtype: 'container',
            columnWidth: 0.49,
        }]
}],
相关问题