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

index 89c5230..9983666 100644 (file)
@@ -343,8 +343,8 @@ layout.addxtype({
                 //var el = this.getRegion(region).el.createChild();
                 var el = this.el.createChild();
                 // create the grid first...
-                
-                var grid = new Roo.grid[cfg.grid.xtype](el, cfg.grid);
+                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;