Browse Source

RemoteCombo下拉框最大高度自适应控制

zhuth 7 years ago
parent
commit
630e3c3b5e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      frontend/saas-web/app/view/core/form/RemoteCombo.js

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

@@ -7,6 +7,9 @@ Ext.define('saas.view.core.form.RemoteCombo', {
     displayField: 'display',
     valueField: 'value',
     queryMode: 'local',//只在组件加载的时候请求一次
+    listConfig: {
+        maxHeight: (Ext.isIE?screen.height:window.innerHeight)*0.5-50,
+    },
     initComponent: function() {
         var me = this;
         Ext.applyIf(this,{