PDA

View Full Version : [CLOSED] Combo's matchFieldWidth causes an uncoplemete list to be shown.



interconcept
23 Nov 2011, 1:28 AM
Her we have another Bug:

Store with 5 elements (can be also an JSON Store).

Combo's option matchFieldWidth: false makes only three elements to be shown.



var combo = Ext.create("Ext.form.field.ComboBox", {
renderTo: 'main',
allowBlank: false,
store: new Ext.data.Store({
data:[
{'id':12, descriptor:'12'},
{'id':13, descriptor:'13'},
{'id':14, descriptor:'14'},
{'id':15, descriptor:'15'},
{'id':16, descriptor:'16'}
],
fields: ['id', 'descriptor']
}),
displayField: 'id',
valueField: 'descriptor',
matchFieldWidth: false
});

mitchellsimoens
23 Nov 2011, 12:26 PM
Just tested this against our latest code and cannot reproduce, I see 5 choices.

interconcept
24 Nov 2011, 5:50 AM
The latest code is which? I tested it on 4.0.7

mitchellsimoens
24 Nov 2011, 9:52 AM
The latest code is which? I tested it on 4.0.7

It is what will be in the next release which I believe to be called 4.1.0beta