Blame view

WebRoot/plugins/websocketInstantMsg/ext4/ux/layout/component/form/MultiSelect.js 691 Bytes
ad5081d3   孙向锦   初始化项目
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  /**
   * @private
   * @class Ext.ux.layout.component.form.MultiSelect
   * @extends Ext.layout.component.field.Field
   * Layout class for {@link Ext.ux.form.MultiSelect} fields.
   * @private
   */
  Ext.define('Ext.ux.layout.component.form.MultiSelect', {
      extend: 'Ext.layout.component.field.Field',
      alias: ['layout.multiselectfield'],
  
      type: 'multiselectfield',
  
      /**
       * @cfg {Number} height The height of the field. Defaults to 200.
       */
      defaultHeight: 200,
  
      sizeBodyContents: function(width, height) {
          var me = this;
  
          if (!Ext.isNumber(height)) {
              height = me.defaultHeight;
          }
  
          me.owner.panel.setSize(width, height);
      }
  });