PDA

View Full Version : Panel (Layout hbox) problem with resizing the Ext.ux.form.MultiSelect items?



Naokai
12 Jan 2011, 12:48 AM
Hello again,

im not 100% sure but i guess there is a problem with the resizing of multiselect items which are in a panel with the layout type: hbox.

here is my (not working so well) example ;)



multiSelectCustomer = new Ext.ux.form.MultiSelect ({
id: 'customer',
name: 'customer',
store: storeCustomer,
valueField: 'marktnummer',
displayField: "Ort",
blankText: 'No customers to display',
//width: 364,
//height: 270
})

multiSelectProduct = new Ext.ux.form.MultiSelect ({
id: 'product',
name: 'product',
store: storeProduct,
valueField: 'Medianummer',
displayField: 'artikelname',
blankText: 'No products to display',
//width: 364,
//height: 270
})

spanel = new Ext.Panel ({
id: 'spanel',
title: 'just a test',
layout: 'hbox',
layoutConfig: {
align: 'stretch',
pack: 'start'
},
defaults: {
flex:1
}
})

/*** push MultiSelect into the spanel ***/
arrMultiSelect = new Array();
arrMultiSelect.push(multiSelectCustomer);
arrMultiSelect.push(multiSelectProduct);
spanel.add(arrMultiSelect);


I would be thankful for any help!
Best Regards Lars

Naokai
12 Jan 2011, 4:37 AM
push, no suggestions?

msuresh
12 Jan 2011, 5:28 AM
Did you try autoWidth:true ?

Naokai
13 Jan 2011, 4:41 AM
yeah tryed it now but it didnt helped