我想垂直對齊按鈕,然後想要將其設置到屏幕的底部 ,但只要我設置其屬性bottom:0
按鈕下降但是他們沒有在寬度上拉伸。設置按鈕在底部,但在sencha觸摸完全拉伸寬度
我想要的是我想將它設置爲底部和全屏寬度。
這裏是我的代碼
Ext.define("ca.view.cav",{
extend:'Ext.Container',
xtype:'cv',
requires:['Ext.Button','Ext.Panel'],
config:{
bottom:0,
defaults: {
margin: '10 0 0 0'
} ,
items:[{
xtype:'button',
text:'YES'
},{
xtype:'button',
text:'NO'
},{
xtype:'button',
text:'PROBABLY YES'
},{
xtype:'button',
text:'PROBABLY NO'
},{
xtype:'button',
text:'DON\'T KNOW'
},{
xtype:'button',
text:'SKIP'
}]
}
});
,我在給其他面板添加此容器,xtype:cv
包含面板的佈局是什麼?你可以發佈該代碼嗎? – kevhender
它的佈局:'vbox'' – Hunt