PDA

View Full Version : Less space on fieldLabel



spor
29 Jun 2010, 11:53 PM
I have multiple fieldsets which consist of comboboxes, textfields and numberfields. Each fieldset is configured with "flex: 1". The corresponding fieldlabels are consuming too much space even though the strings are much shorter, which makes the space between a fieldlabel and textfield/numberfield too wide.

It seems like the default space reservation is for fieldlabel is way too large for my usage. For experimentation, I set all the fieldlabels to 1-letter-strings, and they still consumed as much space.

How do we reduce the default space reservation for fieldlabels?

Lloyd K
30 Jun 2010, 1:06 AM
You can set labelWidth on both form and fieldset (and fieldsets inside forms) to whatever size you want, this is not the default however it's a fixed size.

spor
30 Jun 2010, 1:12 AM
Could you show me how to do that?

I tried


xtype: 'numberfield',
fieldLabelTip: 'Saksnummer',
anchor: '100%',
labelStyle: 'width:30px',
fieldLabel: 'Super Long Label That Cuts Off?'

But still get the big space between them as you can see in the picture.

21187