Roo/ContentPanel.js
authorAlan <alan@roojs.com>
Fri, 10 Dec 2021 07:37:57 +0000 (15:37 +0800)
committerAlan <alan@roojs.com>
Fri, 10 Dec 2021 07:37:57 +0000 (15:37 +0800)
Roo/ContentPanel.js

index 818aee4..3a763fe 100644 (file)
@@ -471,7 +471,11 @@ layout.addxtype({
  */
 Roo.GridPanel = function(grid, config){
     
-  
+    // universal ctor...
+    if (typeof(grid.grid) != 'undefined') {
+        config = grid;
+        grid = config.grid;
+    }
     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);