Roo/bootstrap/Calendar.js
authorEdward <edward@roojs.com>
Thu, 25 Sep 2014 04:13:22 +0000 (12:13 +0800)
committerEdward <edward@roojs.com>
Thu, 25 Sep 2014 04:13:22 +0000 (12:13 +0800)
Roo/bootstrap/Calendar.js

index ded25d1..c8fd33a 100644 (file)
@@ -802,6 +802,8 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
                 c.events.push(c.more.pop());
             }
             
+            c.row = c.events.length;
+            
         });
             
 //        for (var e = 0; e < this.calevents.length; e++) {
@@ -824,9 +826,6 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
 //        }
 //        
         this.cells.each(function(c) {
-            if(c.more.length && c.more.length == 1){
-                c.rows.push(c.more.pop());
-            }
             
             var r = (c.more.length) ? c.rows.length + 1 : c.rows.length;
             c.select('.fc-day-content div',true).first().setHeight(Math.max(34, r * 20));