projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70567e0
)
Roo/BorderLayout.js
author
Alan Knowles
<alan@akbkhome.com>
Mon, 14 Jun 2010 09:01:15 +0000
(17:01 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 14 Jun 2010 09:01:15 +0000
(17:01 +0800)
Roo/BorderLayout.js
patch
|
blob
|
history
diff --git
a/Roo/BorderLayout.js
b/Roo/BorderLayout.js
index
3573f6a
..
e38dd6a
100644
(file)
--- a/
Roo/BorderLayout.js
+++ b/
Roo/BorderLayout.js
@@
-392,9
+392,13
@@
layout.addxtype({
switch(cfg.xtype)
{
case 'ContentPanel': // ContentPanel (el, cfg)
-
- var el = this.el.createChild();
- ret = new Roo[cfg.xtype](el, cfg); // new panel!!!!!
+ if(cfg.autoCreate) {
+ ret = new Roo[cfg.xtype](cfg); // new panel!!!!!
+ } else {
+ var el = this.el.createChild();
+ ret = new Roo[cfg.xtype](el, cfg); // new panel!!!!!
+ }
+
this.add(region, ret);
break;