From: leon Date: Tue, 21 Jun 2022 08:54:22 +0000 (+0800) Subject: Roo/ContentPanel.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=b33ca3eb6174545ae02557121bdd221c65af78fa;p=roojs1 Roo/ContentPanel.js --- diff --git a/Roo/ContentPanel.js b/Roo/ContentPanel.js index 0984532b54..6c1943d0be 100644 --- a/Roo/ContentPanel.js +++ b/Roo/ContentPanel.js @@ -41,7 +41,7 @@ */ Roo.ContentPanel = function(el, config, content){ - + console.log("ContentPanel Constructor"); /* if(el.autoCreate || el.xtype){ // xtype is available if this is called from factory config = el; @@ -425,6 +425,16 @@ layout.addxtype({ */ addxtype : function(cfg) { + if(cfg.xtype.match(/^UploadCropbox$/)) { + + cfg.el = this.el.appendChild(document.createElement("div")); + + this.cropbox = new Roo.factory(cfg); + + this.cropbox.render(); + + return this.cropbox; + } // add form.. if (cfg.xtype.match(/^Form$/)) {