PDA

View Full Version : ComboBox maxHeight ignored until second "expand"


tbarstow
04-23-2007, 03:19 PM
Hi,

ComboBox rocks, but I'm having a funny little problem that affects all browsers I've tested (Firefox latest, Safari, IE6 on WinXP). The first time I expand the ComboBox, it has no height restriction. Every subsequent time I expand it, however, it does have the expected restriction. This is true whether I pass maxHeight or accept the default.

Here's my code:


new Ext.form.ComboBox({
store: myDataStore,
displayField: 'label',
valueField: 'id',
maxHeight: 200,
forceSelection: true,
editable: false
});


Then I'm adding the ComboBox to a toolbar by passing it to the Toolbar constructor.

Any ideas?

Thanks

tbarstow
04-23-2007, 04:08 PM
I should mention that I am trying to have the ComboBox only load it's data once by doing the following before creating the ComboBox with the code above:


myDataStore.load({});
myDataStore.on('beforeload',function(){return false;});