PDA

View Full Version : combobox growToLongestValue is not working



dimas-lex
5 Dec 2013, 5:12 AM
Hi,
It seems that growToLongestValue for combobox is not working:
Example http://jsfiddle.net/9bXB4/


Ext.create('Ext.form.field.ComboBox', {
renderTo: Ext.getBody(),
fieldLabel: 'Label',
editable: false,
growToLongestValue: true,
store: [
'long_value_1',
'loooooooooooooooooooooooooong_value_2'
]
});

dimas-lex
5 Dec 2013, 6:15 AM
Browser FF25, Chrome Version 30.0.1599.114https://fiddle.sencha.com/#fiddle/1vb

Gary Schlosberg
5 Dec 2013, 2:09 PM
The docs specify that 'grow' must be set:

false to not allow the component to resize itself when its data changes (and its grow property is true)

With the grow property it seems to work:
https://fiddle.sencha.com/#fiddle/1vr