PDA

View Full Version : Fixed width ComboBoxes and dynamic values



uboness
2 Oct 2010, 1:02 PM
Hi,

I have a requirement where I need to have a ComboBox of fixed width which contains dynamic values (of arbitrary length). The problem here is that quite often the values are being truncated as they are wider than the ComboBox itself. I looked at the code an the API and I couldn't find any way to bypass that. At first I wanted to set the list view to have an auto width, but this is being overriden by the restrict() method in the ComboBox.

Any idea how to resolve this problem?

Cheers,
UB

sven
4 Oct 2010, 3:31 AM
http://www.sencha.com/forum/showthread.php?110892-Display-entire-value-in-ComboBox

Another approach would be to go over all the values and get there size and than set the minListWidth according to this.