PDA

View Full Version : buttonAlign doesnt work for fieldset



Baron89
12 Sep 2012, 1:24 AM
buttonAlign doesnt work for fieldset,anybody know why?

{
xtype: 'fieldset',
//border: false,
layout: 'column',
buttonAlign: 'center',
width: 400,
items: [
{
xtype: 'button',
width: '70',
text: 'Add',
cls : 'icon-margin',
},{
xtype: 'button',
width: '70',
text: 'Reset',
cls : 'icon-margin',
}
]
}

sword-it
12 Sep 2012, 2:15 AM
HI!

i am wondering, do we have config named buttonAlign in xtype fieldset?
have you checked API?

actually, buttonAlign will work with config used for adding buttons docked to the bottom of the panel.
you may use buttonAlign when you specify your buttons (toolbar)like these:-



buttons: [
{ text: 'Button 1' }
]


check this for more info:-
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.panel.Panel-cfg-buttons

Baron89
14 Sep 2012, 12:59 AM
HI!

i am wondering, do we have config named buttonAlign in xtype fieldset?
have you checked API?

actually, buttonAlign will work with config used for adding buttons docked to the bottom of the panel.
you may use buttonAlign when you specify your buttons (toolbar)like these:-



buttons: [
{ text: 'Button 1' }
]


check this for more info:-
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.panel.Panel-cfg-buttons
yea buddy,there's buttonAlign in fieldset,pls see the pic below38693

fschaeffer
14 Sep 2012, 5:00 AM
The alignment of any buttons ...... refers to a button object in a docked bottom bar, not an button xtype which is inserted as child of that panel ....