Roo/ContentPanel.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 26 May 2010 07:24:19 +0000 (15:24 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 26 May 2010 07:24:19 +0000 (15:24 +0800)
Roo/ContentPanel.js

index 54b682d..cad01ef 100644 (file)
@@ -375,7 +375,7 @@ Roo.GridPanel = function(grid, config){
     
     if (typeof(config) == 'undefined') { // xtype construction..
         config = grid;
-        grid = config.grid;
+        grid = Roo.factory(config.grid, Roo);
     }
     this.wrapper = Roo.DomHelper.append(document.body, // wrapper for IE7 strict & safari scroll issue
         {tag: "div", cls: "x-layout-grid-wrapper x-layout-inactive-content"}, true);