projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1029039
)
Roo/ContentPanel.js
author
leon
<leon@roojs.com>
Tue, 21 Jun 2022 08:54:22 +0000
(16:54 +0800)
committer
leon
<leon@roojs.com>
Tue, 21 Jun 2022 08:54:22 +0000
(16:54 +0800)
Roo/ContentPanel.js
patch
|
blob
|
history
diff --git
a/Roo/ContentPanel.js
b/Roo/ContentPanel.js
index
0984532
..
6c1943d
100644
(file)
--- a/
Roo/ContentPanel.js
+++ b/
Roo/ContentPanel.js
@@
-41,7
+41,7
@@
*/
Roo.ContentPanel = function(el, config, content){
*/
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;
/*
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) {
*/
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$/)) {
// add form..
if (cfg.xtype.match(/^Form$/)) {