X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/src/layout/component/Draw.js diff --git a/src/layout/component/Draw.js b/src/layout/component/Draw.js new file mode 100644 index 00000000..d2649e59 --- /dev/null +++ b/src/layout/component/Draw.js @@ -0,0 +1,24 @@ +/** + * @class Ext.layout.component.Draw + * @extends Ext.layout.component.Component + * @private + * + */ + +Ext.define('Ext.layout.component.Draw', { + + /* Begin Definitions */ + + alias: 'layout.draw', + + extend: 'Ext.layout.component.Auto', + + /* End Definitions */ + + type: 'draw', + + onLayout : function(width, height) { + this.owner.surface.setSize(width, height); + this.callParent(arguments); + } +}); \ No newline at end of file