|
|
@@ -472,16 +472,19 @@ var TimeGrid = FC.TimeGrid = InteractiveDateComponent.extend(StandardInteraction
|
|
|
|
|
|
// For each segment in an array, computes and assigns its top and bottom properties
|
|
|
computeSegVerticals: function(segs) {
|
|
|
+ var eventMinHeight = this.opt('agendaEventMinHeight');
|
|
|
var i, seg;
|
|
|
var dayDate;
|
|
|
- var agendaEventMinHeight = this.view.opt('agendaEventMinHeight');
|
|
|
|
|
|
for (i = 0; i < segs.length; i++) {
|
|
|
seg = segs[i];
|
|
|
dayDate = this.dayDates[seg.dayIndex];
|
|
|
|
|
|
seg.top = this.computeDateTop(seg.startMs, dayDate);
|
|
|
- seg.bottom = Math.max(seg.top + agendaEventMinHeight, this.computeDateTop(seg.endMs, dayDate));
|
|
|
+ seg.bottom = Math.max(
|
|
|
+ seg.top + eventMinHeight,
|
|
|
+ this.computeDateTop(seg.endMs, dayDate)
|
|
|
+ );
|
|
|
}
|
|
|
},
|
|
|
|