X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/src/layout/component/FieldSet.js diff --git a/src/layout/component/FieldSet.js b/src/layout/component/FieldSet.js new file mode 100644 index 00000000..4ce54b11 --- /dev/null +++ b/src/layout/component/FieldSet.js @@ -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