projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
605d4f8
)
Roo/BorderLayout.js
author
Alan Knowles
<alan@akbkhome.com>
Tue, 13 Dec 2011 06:22:33 +0000
(14:22 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 13 Dec 2011 06:22:33 +0000
(14:22 +0800)
Roo/BorderLayout.js
patch
|
blob
|
history
diff --git
a/Roo/BorderLayout.js
b/Roo/BorderLayout.js
index
330253d
..
c0f97fe
100644
(file)
--- a/
Roo/BorderLayout.js
+++ b/
Roo/BorderLayout.js
@@
-495,7
+495,10
@@
layout.addxtype({
for(var r in nb) {
region = this.getRegion(r);
if (region) {
- region.showPanel(0);
+ // tried using nb[r], but it does not work..
+ if(region.panels.getCount() > 1 ) {
+ region.showPanel(nb[r]);
+ }
}
}
}