projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f953403
)
roojs-debug.js
author
Alan Knowles
<alan@akbkhome.com>
Tue, 13 Dec 2011 06:27:28 +0000
(14:27 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 13 Dec 2011 06:27:28 +0000
(14:27 +0800)
roojs-debug.js
patch
|
blob
|
history
diff --git
a/roojs-debug.js
b/roojs-debug.js
index
d69d0f7
..
5b4ad60
100644
(file)
--- a/
roojs-debug.js
+++ b/
roojs-debug.js
@@
-44849,29
+44849,33
@@
layout.addxtype({
this.beginUpdate();
// add children..
var region = '';
this.beginUpdate();
// add children..
var region = '';
+ var abn = {};
Roo.each(xitems, function(i) {
Roo.each(xitems, function(i) {
- region = nb && i.region
&& !i.background
? i.region : false;
+ region = nb && i.region ? i.region : false;
var add = ret.addxtype(i);
if (region) {
var add = ret.addxtype(i);
if (region) {
- nb[region] = add;
+ nb[region] = nb[region] == undefined ? 0 : nb[region]+1;
+ if (!i.background) {
+ abn[region] = nb[region] ;
+ }
}
});
this.endUpdate();
// make the last non-background panel active..
}
});
this.endUpdate();
// make the last non-background panel active..
-
//if (nb) { Roo.log(
nb); }
+
if (nb) { Roo.log(a
nb); }
if (nb) {
if (nb) {
- for(var r in
nb
) {
+ for(var r in
abn
) {
region = this.getRegion(r);
if (region) {
// tried using nb[r], but it does not work..
region = this.getRegion(r);
if (region) {
// tried using nb[r], but it does not work..
- if(region.activePanel != nb[r] ) {
-
region.showPanel(nb
[r]);
- }
+
+
region.showPanel(abn
[r]);
+
}
}
}
}
}
}