View Full Version : resize width of combo box

29 Mar 2012, 2:35 PM

When a combo box gets its values from a Look-up-table, sometimes the strings are longer than the width of the combobox field.
I have the width filed set to 200, in Ext.form.ComboBox.
The items are pushed into the Ext.form.FormPanel, the formPanel is added to Ext.Window items field.

So when a comboBox has a string < 200, we can see all the info. But if the string is > 200, we cannot read the full string.

If we resize the Ext.Window, the fileds in the Ext.FormPanel do not resize with the form.

Is it possible to resize the fileds in the inner panel when the Ext.Window is resized ?


29 Mar 2012, 3:06 PM
What is your layout for your form? You could use anchor: '100%' on your editors to grow your fields?

You can also use listWidth to increase the size of your list over the width of your editor itself.


29 Mar 2012, 4:09 PM
thanks Scott,
anchor:'100%', in the field attributes did exactly what I was looking for.
listWidth:'100%', on a combo box is awesome!, but maybe a little too much for what I need. However I will let the user decide.

Much awesome points to you on this fine fridat Scott!