X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/src/layout/component/Auto.js?ds=sidebyside diff --git a/src/layout/component/Auto.js b/src/layout/component/Auto.js new file mode 100644 index 00000000..56594cb5 --- /dev/null +++ b/src/layout/component/Auto.js @@ -0,0 +1,25 @@ +/** + * @class Ext.layout.component.Auto + * @extends Ext.layout.component.Component + * @private + * + *

The AutoLayout is the default layout manager delegated by {@link Ext.Component} to + * render any child Elements when no {@link Ext.Component#layout layout} is configured.

+ */ + +Ext.define('Ext.layout.component.Auto', { + + /* Begin Definitions */ + + alias: 'layout.autocomponent', + + extend: 'Ext.layout.component.Component', + + /* End Definitions */ + + type: 'autocomponent', + + onLayout : function(width, height) { + this.setTargetSize(width, height); + } +}); \ No newline at end of file