Project

General

Profile

Download (1.31 KB) Statistics
| Branch: | Revision:

git_sitools_idoc / flarecast / workspace / client-public-3.0 / js / ux / layout / component / form / MultiSelect.js @ master

1
/*
2

3
This file is part of Ext JS 4
4

5
Copyright (c) 2011 Sencha Inc
6

7
Contact:  http://www.sencha.com/contact
8

9
GNU General Public License Usage
10
This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file.  Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
11

12
If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
13

14
*/
15
Ext.namespace('sitools.public.layout.form');
16

    
17
/**
18
 * @private
19
 * @class Ext.ux.layout.component.layout.MultiSelect
20
 * @extends Ext.layout.component.field.Field
21
 * Layout class for {@link Ext.ux.form.MultiSelect} fields.
22
 * @private
23
 */
24
Ext.define('sitools.public.ux.layout.MultiSelect', {
25
    extend: 'Ext.layout.component.field.Field',
26
    alias : ['layout.multiselectfield'],
27
    /**
28
     * @cfg {Number} height The height of the field. Defaults to 200.
29
     */
30
    defaultHeight: 200,
31

    
32
    sizeBodyContents: function(width, height) {
33
        var me = this;
34

    
35
        if (!Ext.isNumber(height)) {
36
            height = me.defaultHeight;
37
        }
38

    
39
        me.owner.panel.setSize(width, height);
40
    }
41
});