Browse Source

代码提交

hy 7 years ago
parent
commit
6ca4138c98

+ 4 - 4
frontend/saas-web/app/view/core/form/RemoteCombo.js

@@ -34,10 +34,10 @@ Ext.define('saas.view.core.form.RemoteCombo', {
     },
     },
     createPicker: function() {
     createPicker: function() {
         var me = this,
         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,
                 hiddenBtn:me.hiddenBtn,
                 xtype: 'boundlistadd',
                 xtype: 'boundlistadd',
                 id: me.id + '-picker',
                 id: me.id + '-picker',

+ 1 - 1
frontend/saas-web/app/view/core/view/BoundListAdd.js

@@ -254,7 +254,7 @@ Ext.define('saas.view.core.view.BoundListAdd', {
             id: me.id + '-toolbar',
             id: me.id + '-toolbar',
             border: true,
             border: true,
             ownerCt: me,
             ownerCt: me,
-            hidden:me.hiddenBtn,
+            height:me.hiddenBtn?0:50,
             items:[{
             items:[{
                 text:'新增',
                 text:'新增',
                 handler:me.addHandler,
                 handler:me.addHandler,