Roo/bootstrap/panel/Grid.js
authorjohns <johns@office.ROOJS.COM>
Thu, 6 Jul 2017 07:57:26 +0000 (15:57 +0800)
committerjohns <johns@office.ROOJS.COM>
Thu, 6 Jul 2017 07:57:26 +0000 (15:57 +0800)
Roo/bootstrap/panel/Grid.js

index c9ceae0..6fe98bb 100644 (file)
@@ -6,7 +6,16 @@
  * Create a new GridPanel.
  * @param {Roo.grid.Grid} grid The grid for this panel
  * @param {String/Object} config A string to set only the panel's title, or a config object
+
+  new Roo.bootstrap.panel.Grid({
+               grid: .....
+               ....
+  }
+
  */
+
+
+
 Roo.bootstrap.panel.Grid = function(grid, config){
     
   
@@ -29,10 +38,10 @@ Roo.bootstrap.panel.Grid = function(grid, config){
         
     }
     
-    grid.monitorWindowResize = false; // turn off autosizing
-    grid.autoHeight = false;
-    grid.autoWidth = false;
-    this.grid = grid;
+    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");
 };