20 Apr 2009 10:55 AM #1
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
but it doesn't work
I'm very sorry if it's something trivial, but I can't do this.
Thank's a lot.
25 Aug 2011 12:10 AM #2
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.
2 Nov 2011 10:37 AM #3
Setting the width on the form panel worked for me.
FormPanel formPanel = new FormPanel();