【发布时间】:2013-02-11 15:03:34
【问题描述】:
我想知道如何将底部停靠工具栏中的两个按钮居中对齐。我看到的按钮上解决此问题的唯一属性是centered,但它们的中心绝对与按钮重叠,有没有办法将它们分组在中心?
这是我一直在使用的一些代码:http://www.senchafiddle.com/#xTZZg#k24Ni
Ext.Loader.setConfig({
enabled: true
});
Ext.application({
name: 'SenchaFiddle',
launch: function () {
var panelNewForm = Ext.create('Ext.Panel', {
id: 'panelNewForm',
title: 'TEST',
html: 'TEST',
pack: 'center',
items: [{
xtype: 'toolbar',
docked: 'bottom',
layout: {
type: 'hbox',
align: 'center'
},
items: [{
ui: 'decline',
text: 'Cancel',
handler: function () {
}
}, {
ui: 'confirm',
text: 'Save',
handler: function () {
}
}]
}]
});
Ext.Viewport.add(panelNewForm);
}
});
【问题讨论】:
标签: javascript mobile extjs sencha-touch sencha-touch-2