Roo/bootstrap/panel/Grid.js
authorAlan Knowles <alan@roojs.com>
Fri, 14 Jul 2017 02:07:42 +0000 (10:07 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 14 Jul 2017 02:07:42 +0000 (10:07 +0800)
Roo/bootstrap/panel/Grid.js

index 1a5dff9..75dcf3e 100644 (file)
@@ -39,10 +39,14 @@ Roo.bootstrap.panel.Grid = function(config){
     }
     
     Roo.bootstrap.panel.Grid.superclass.constructor.call(this, config);
-       
+    
+    config.grid.monitorWindowResize = false; // turn off autosizing
+    config.grid.autoHeight = false;
+    config.grid.autoWidth = false;
+    
     this.grid = new config.grid.xns[config.grid.xtype](config.grid);
     this.grid.render(this.wrapper);
-                
+    this.grid.getGridEl().replaceClass("x-layout-inactive-content", "x-layout-component-panel");               
     
     //this.wrapper.dom.appendChild(config.grid.getGridEl().dom);
     // ??? needed ??? config.el = this.wrapper;
@@ -61,11 +65,7 @@ Roo.bootstrap.panel.Grid = function(config){
     }
     
     
-    config.grid.monitorWindowResize = false; // turn off autosizing
-    config.grid.autoHeight = false;
-    config.grid.autoWidth = false;
-    this.grid = config.grid;
-    this.grid.getGridEl().replaceClass("x-layout-inactive-content", "x-layout-component-panel");
+    
     
      
 };