Roo/grid/Calendar.js
authorAlan Knowles <alan@roojs.com>
Wed, 9 Apr 2014 10:19:59 +0000 (18:19 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 9 Apr 2014 10:19:59 +0000 (18:19 +0800)
Roo/grid/Calendar.js

index be394d6..d4e62e5 100644 (file)
@@ -407,7 +407,9 @@ Roo.grid.Calendar = function(container, config){
 
     Roo.grid.Grid.superclass.constructor.call(this);
     this.on('render', function() {
-              (function() { this.setDate(new Date()); }).defer(100,this); //default today..
+        this.view.el.addClass('x-grid-cal'); 
+        
+        (function() { this.setDate(new Date()); }).defer(100,this); //default today..
 
     });
     
@@ -433,7 +435,7 @@ Roo.extend(Roo.grid.Calendar, Roo.grid.Grid, {
         }
     },
      setDate :function(date) {
-          this.resizeColumns();
+        this.resizeColumns();
         var vd = this.activeDate;
         this.activeDate = date;
 //        if(vd && this.el){