Closed GoogleCodeExporter closed 8 years ago
My search for previous reports was sloppy. I now see that this problem has also
been reported in Issue 83.
Original comment by CoB...@gmail.com
on 1 Nov 2010 at 11:23
I've modified the placeAppointments method of MonthLayoutDescription class:
- I've added a new Date variable: dayAfterCalendarLastDay which is the next day after the calendar last day.
- I've changed the call to overlapsWithMonth method from,
overlapsWithMonth(appointment, calendarFirstDay, calendarLastDay)
to
overlapsWithMonth(appointment, calendarFirstDay, dayAfterCalendarLastDay)
Now the events from the last day displayed on month view are rendered.
[...]
private void placeAppointments(ArrayList<Appointment> appointments, int maxLayer) {
Date dayAfterCalendarLastDay = (Date) calendarLastDay.clone();
dayAfterCalendarLastDay.setDate(dayAfterCalendarLastDay.getDate() + 1);
for (Appointment appointment : appointments) {
if (overlapsWithMonth(appointment, calendarFirstDay, dayAfterCalendarLastDay)) {
int startWeek = calculateWeekFor(appointment.getStart(), calendarFirstDay);
/* Place appointments only in this month */
if (startWeek >= 0 && startWeek < weeks.length) {
initWeek(startWeek, maxLayer);
if (appointment.isMultiDay() || appointment.isAllDay()) {
positionMultidayAppointment(startWeek, appointment, maxLayer);
} else {
weeks[startWeek].addAppointment(appointment);
}
}
}
}
}
[...]
Original comment by alin.par...@gmail.com
on 10 Feb 2011 at 1:25
Attachments:
OP noticed this is a duplicate of Issue 83, which was resolved in revision 365.
Closing as duplicate.
Original comment by carlos.m...@gmail.com
on 17 May 2011 at 3:09
Original issue reported on code.google.com by
CoB...@gmail.com
on 1 Nov 2010 at 11:15