PDA

View Full Version : [CLOSED][3.??] Field label doesn't align right for Form Panel



innek81
11 Dec 2009, 12:29 AM
Hi,

Can't seem to align the field label to the right-side for form panel. Align top works though.


xtype: 'panel',
layout: 'form',
labelAlign: 'right',
items: [{
xtype: 'radio',
fieldLabel: 'Exception'
}]

FF 3.5.5
Windows XP

Condor
11 Dec 2009, 1:25 AM
I think you misunderstood what labelAlign:'right' is supposed to do.

With labelAlign:'right' the fieldLabels are still to the left of the fields, but the text is right aligned.

You are looking for:

xtype: 'panel',
layout: 'form',
//labelAlign: 'right',
items: [{
xtype: 'radio',
boxLabel: 'Exception',
hideLabel: true // optionally, to hide fieldLabel
}]