Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / examples / ux / layout / component / form / MultiSelect.js
diff --git a/examples/ux/layout/component/form/MultiSelect.js b/examples/ux/layout/component/form/MultiSelect.js
new file mode 100644 (file)
index 0000000..f5d4dc7
--- /dev/null
@@ -0,0 +1,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);
+    }
+});
\ No newline at end of file