Results 1 to 3 of 3

Thread: Width of ComboBox in GXT

  1. #1
    Ext User
    Join Date
    Apr 2009
    Posts
    1
    Vote Rating
    0
      0  

    Default Width of ComboBox in GXT

    I would like to ask how to change, width of GXT's ComboBox (com.extjs.gxt.ui.client.widget.form.ComboBox). I thought it's trivial but after few trying i realize that it is specified minimal width of this form, but I there will be only one char, and I would like to make it smaller. How to do this?
    I tried sth like
    <code>setMinListWidth(30);</code>
    but it doesn't work

    I'm very sorry if it's something trivial, but I can't do this.

    Thank's a lot.

  2. #2
    Sencha User
    Join Date
    Jul 2011
    Posts
    4
    Vote Rating
    0
      0  

    Default

    Actually, after 2 years from your post nobody answered it and I am facing the same problem. I found that setting AutoWidth property to true the dropdown list is autosized but not the combobox itself, that is what I want to do also.

  3. #3
    Sencha User
    Join Date
    Jun 2011
    Posts
    5
    Vote Rating
    0
      0  

    Default

    Setting the width on the form panel worked for me.

    PHP Code:
    FormPanel formPanel = new FormPanel();
    formPanel.setFieldWidth(100); 

Posting Permissions

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