Results 1 to 3 of 3

Thread: resize width of combo box

  1. #1
    Sencha User
    Join Date
    Mar 2012

    Default resize width of combo box


    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 ?


  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Houston, Tx


    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.


  3. #3
    Sencha User
    Join Date
    Mar 2012


    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!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts