If multiple calendar event starts at XX:15 or later and end XX:44 or earlier of the same hour, they are not shown overlapped in the day and week view. Instead, one of the events takes the complete space of the row.
The following example demonstrates the behavior (screenshot of results attached):
I saw the issue in SmartGWT 2.2 and could reproduce it as well with SmartGWT trunk version (SVN revision 1449).
Do I do something wrong or is this a bug?
The following example demonstrates the behavior (screenshot of results attached):
Code:
Date today = new Date(); int year = today.getYear(); int month = today.getMonth(); int start = today.getDate() - today.getDay(); Calendar calendar = new Calendar(); calendar.setData(new CalendarEvent[] { new CalendarEvent(1, "Working scenario (later end date) - event 1", "x", new Date(year, month, start, 8, 15, 0), new Date( year, month, start, 8, 45, 0)), new CalendarEvent(2, "Working scenario (later end date) - event 2", "x", new Date(year, month, start, 8, 15, 0), new Date( year, month, start, 8, 45, 0)), new CalendarEvent(3, "Working scenario(earlier start date) - event 1", "x", new Date(year, month, start, 9, 14, 0), new Date(year, month, start, 9, 44, 0)), new CalendarEvent(4, "Working scenario(earlier start date) - event 2", "x", new Date(year, month, start, 9, 14, 0), new Date(year, month, start, 9, 44, 0)), new CalendarEvent(5, "Failing scenario - event 1", "x", new Date(year, month, start, 10, 15, 0), new Date( year, month, start, 10, 44, 0)), new CalendarEvent(6, "Failing scenario - event 2", "x", new Date(year, month, start, 10, 15, 0), new Date( year, month, start, 10, 44, 0)) }); calendar.setAutoFetchData(true); calendar.draw();
Do I do something wrong or is this a bug?
Comment