|
|
@@ -34,10 +34,10 @@ Ext.define('saas.view.core.form.RemoteCombo', {
|
|
|
},
|
|
|
createPicker: function() {
|
|
|
var me = this,
|
|
|
- picker,
|
|
|
- pickerCfg = Ext.apply({
|
|
|
- maxHeight: 180,
|
|
|
- minHeight: 0,
|
|
|
+ picker;
|
|
|
+ var count = this.store.getCount();
|
|
|
+ var pickerCfg = Ext.apply({
|
|
|
+ height: count>5?150:30*count,
|
|
|
hiddenBtn:me.hiddenBtn,
|
|
|
xtype: 'boundlistadd',
|
|
|
id: me.id + '-picker',
|