Roo/bootstrap/panel/Grid.js
authorAlan Knowles <alan@roojs.com>
Fri, 7 Jul 2017 03:00:13 +0000 (11:00 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 7 Jul 2017 03:00:13 +0000 (11:00 +0800)
Roo/bootstrap/panel/Grid.js

index 4473e6a..f16392a 100644 (file)
@@ -46,8 +46,7 @@ Roo.bootstrap.panel.Grid = function(config){
     this.grid = config.grid;
     this.grid.getGridEl().replaceClass("x-layout-inactive-content", "x-layout-component-panel");
     
-    this.on('resize', this.onResize, this);
-    
+     
 };
 
 Roo.extend(Roo.bootstrap.panel.Grid, Roo.bootstrap.panel.Content, {
@@ -68,14 +67,14 @@ Roo.extend(Roo.bootstrap.panel.Grid, Roo.bootstrap.panel.Content, {
             var grid = this.grid;
             var size = this.adjustForComponents(width, height);
             grid.getGridEl().setSize(size.width, size.height);
-            
+            var thd = grid.getGridEl().select('thead');
+        var tbd = grid.getGridEl().select('tbody');
             grid.autoSize();
         }
     },
     onResize : function(pan, w, h)
     {
-        var thd = grid.getGridEl().select('thead');
-        var tbd = grid.getGridEl().select('tbody');
+        
         
     },