Roo/bootstrap/layout/Border.js
authorAlan Knowles <alan@roojs.com>
Fri, 7 Jul 2017 01:23:43 +0000 (09:23 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 7 Jul 2017 01:23:43 +0000 (09:23 +0800)
Roo/bootstrap/layout/Border.js

index 9983666..075adf0 100644 (file)
@@ -345,11 +345,12 @@ layout.addxtype({
                 // create the grid first...
                 cfg.grid.el = el;
                 var grid = new cfg.grid.ns[cfg.grid.xtype](el);
+                
                 delete cfg.grid;
                 if (region == 'center' && this.active ) {
                     cfg.background = false;
                 }
-                ret = new Roo[cfg.xtype](grid, cfg); // new panel!!!!!
+                ret = new cfg.ns[cfg.xtype](grid, cfg); // new panel!!!!!
                 
                 this.add(region, ret);
                 if (cfg.background) {