Roo/bootstrap/layout/Border.js
authorAlan Knowles <alan@roojs.com>
Fri, 30 Jun 2017 06:47:15 +0000 (14:47 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 30 Jun 2017 06:47:15 +0000 (14:47 +0800)
Roo/bootstrap/layout/Border.js

index 24655fb..d37025e 100644 (file)
@@ -312,10 +312,13 @@ layout.addxtype({
             
             case 'Nest': 
                 // create a new Layout (which is  a Border Layout...
-                var el = this.el.createChild();
+                
                 var clayout = cfg.layout;
-                delete cfg.layout;
+                clayout.el  = this.el.createChild();
                 clayout.items   = clayout.items  || [];
+                
+                delete cfg.layout;
+                
                 // replace this exitems with the clayout ones..
                 xitems = clayout.items;
                  
@@ -323,7 +326,7 @@ layout.addxtype({
                 if (region == 'center' && this.active && this.getRegion('center').panels.length < 1) {
                     cfg.background = false;
                 }
-                var layout = new Roo.BorderLayout(el, clayout);
+                var layout = new Roo.bootstrap.layout.Border(clayout);
                 
                 ret = new Roo[cfg.xtype](layout, cfg); // new panel!!!!!
                 //console.log('adding nested layout panel '  + cfg.toSource());