PDA

View Full Version : Align displayfields in compositefield



Alessandro24
6 Jan 2011, 12:22 AM
Hello,

i have some trouble to align the lables in a composite field.

I created the next piece of code. A composite field, with some items inside.



items: [
{
xtype: 'compositefield',
msgTarget: 'side',
items: [
{
fieldLabel: 'First',
xtype: 'textfield',
id: 'first' },

{
xtype: 'displayfield',
value: 'Second'},
{
xtype: 'datefield',
format: 'd-M-Y',
id: 'second'},
{
xtype: 'displayfield',
value: 'Third'},
{
xtype: 'textfield',
id: 'third'}
]
}
]


Now i want to align the labels all to the middle. I tested 3 browers, IE9, Chrome, FF and all respone diffrent. (see image) Want can i do to make them all aligned to the middle ? (i tried allready
align: 'middle' on the displayfields