PDA

View Full Version : form collapsed when use hbox



ikokostya
10 Feb 2011, 5:01 AM
Hi all.

I have problem with hbox inside form panel. Part of Ext.FormPanel config:


layout: 'column',
defaults: {
xtype: 'fieldset'
},
items: [
{
columnWidth: .5,
items: [{
xtype:'textfield',
fieldLabel: 'First Name',
name: 'first',
anchor:'95%'
}, {
xtype:'textfield',
fieldLabel: 'Company',
name: 'company',
anchor:'95%'
}]
}
]


It looks like this:

24647

But when I change column layout to hbox:


layout: 'hbox',
layoutConfig : {
align: 'stretch'
},
defaults: {
xtype: 'fieldset'
},
items: [
{
//columnWidth: .5,
items: [{
xtype:'textfield',
fieldLabel: 'First Name',
name: 'first',
anchor:'95%'
}, {
xtype:'textfield',
fieldLabel: 'Company',
name: 'company',
anchor:'95%'
}]
}
]


I have:
24648
:(

Please help. Thanks.