PDA

View Full Version : Labels inside FieldSet



piero.cavalieri
4 Sep 2009, 3:24 AM
Hi all,

I'm new to te famework, so maybe I'm doing something stupid.
I have a FormPanel with a FieldSet inside.

This (for example) works for me and I have (correctly) 3 textfield on 1 row.

...

fsFasciaOraria = new Ext.form.FieldSet({
id: 'fsFasciaOraria',
fieldLabel: 'Fascia Oraria',
layout: 'hbox',
width: 300,
defaultType: 'textfield',
items :[{
fieldLabel: 'Field 1'
}, {
fieldLabel: 'Field 2'
}, {
fieldLabel: 'Field 3'
}
]
});...

If I try to do the same with Label (as I want):

...

layout: 'hbox',
width: 300,
defaultType: 'label',
items :[{
text: 'Field 1'
}, {
text: 'Field 2'
}, {
text: 'Field 3'
}
]...

only the first label is shown. Is it a known bug ? The layout I want seems to work with other components (tried ComboBoxes too) but not with labels (always only one of the N labels is displayed).

Thanks in advance
Piero