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

index 6ff3b36..e8eae23 100644 (file)
@@ -751,7 +751,7 @@ Roo.extend(Roo.grid.Calendar, Roo.grid.Grid, {
         // first make sure there is enough space..
         
         this.cells.each(function(c) {
-            Roo.log(Math.max(34, c.rows * 20));
+            Roo.log(Math.max(34, (c.rows || 1)* 20));
             Roo.log(c.select('.fc-day-content div',true).first());
             c.select('.fc-day-content div',true).first().setHeight(Math.max(34, c.rows * 20));
         });