Roo/calendar/View.js
authorEdward <edward@roojs.com>
Wed, 9 Apr 2014 12:26:15 +0000 (20:26 +0800)
committerEdward <edward@roojs.com>
Wed, 9 Apr 2014 12:26:15 +0000 (20:26 +0800)
Roo/calendar/View.js

index 735a008..67a62c8 100644 (file)
@@ -725,11 +725,11 @@ Roo.extend(Roo.calendar.View, Roo.BoxComponent,  {
 //                //Roo.log(cg);
                 cg.setXY([sbox.x +2, sbox.y +(ev.row * 20)]);   
 //                Roo.log(rows[i]);
-//                var boxes = Math.ceil((rows[i].end.dateValue - rows[i].start.dateValue) / 86400000) + 1;
+                var boxes = Math.ceil((rows[i].end.dateValue - rows[i].start.dateValue) / 86400000) + 1;
 //                cg.setWidth(ebox.right - sbox.x -2);
 //                Roo.log(boxes);
-//                cg.setWidth(134 * boxes);
-                cg.setWidth(134);
+                cg.setWidth(134 * boxes);
+//                cg.setWidth(134);
                 
             }