Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / src / layout / component / FieldSet.js
diff --git a/src/layout/component/FieldSet.js b/src/layout/component/FieldSet.js
new file mode 100644 (file)
index 0000000..4ce54b1
--- /dev/null
@@ -0,0 +1,19 @@
+/**
+ * Component layout for Ext.form.FieldSet components
+ * @class Ext.layout.component.FieldSet
+ * @extends Ext.layout.component.Body
+ * @private
+ */
+Ext.define('Ext.layout.component.FieldSet', {
+    extend: 'Ext.layout.component.Body',
+    alias: ['layout.fieldset'],
+
+    type: 'fieldset',
+
+    doContainerLayout: function() {
+        // Prevent layout/rendering of children if the fieldset is collapsed
+        if (!this.owner.collapsed) {
+            this.callParent();
+        }
+    }
+});
\ No newline at end of file