Hello
i found that sometimes events in a calendar are not rendered correctly. If several events have the same date and time they are sometimes wider than the column in the week view as can be seen on the attached screenshot. As we can also see on the screenshot, sometimes the positioning works properly. I'm just using a very simple read-only calendar with a datasource. However i cannot consistently say how this problem can be reproduced, since moving the events around sometimes fixes the problem. I also tried to have only a simple calendar which only configures the datasource but the problem still occured.
The datasource has the following fields:
I also attached the debug log from the developer console. The items which are too wide are isc_Canvas_36 and isc_Canvas_37.
Did anybody have similar problems with the Calendar or could give any hint to why this happens?
SmartClient Version: 8.2/LGPL Development Only (built 2011-12-05)
Browser: Internet Explorer 9.0.8112.16421.
i found that sometimes events in a calendar are not rendered correctly. If several events have the same date and time they are sometimes wider than the column in the week view as can be seen on the attached screenshot. As we can also see on the screenshot, sometimes the positioning works properly. I'm just using a very simple read-only calendar with a datasource. However i cannot consistently say how this problem can be reproduced, since moving the events around sometimes fixes the problem. I also tried to have only a simple calendar which only configures the datasource but the problem still occured.
Code:
calendar = new Calendar(); calendar.setDataSource(createDataSource()); calendar.setCanEditEvents(false); calendar.setCanCreateEvents(false); calendar.setCanDeleteEvents(false); calendar.setAutoFetchData(true); calendar.setEventOverlap(true); calendar.setTimeFormatter(TimeDisplayFormat.TOSHORT24HOURTIME); calendar.setEventWindowStyleField(EventColumnName.EVENT_WINDOW_STYLE); calendar.setEventOverlapIdenticalStartTimes(true); calendar.setRowHeight(20); calendar.setFirstDayOfWeek(1);
Code:
DataSourceField idDsField = new DataSourceField("eventId", FieldType.TEXT); idDsField.setPrimaryKey(true); DataSourceField startDateField = new DataSourceDateField("startDate", "Startdate"); startDateField.setTimeFormatter(TimeDisplayFormat.TOSHORT24HOURTIME); DataSourceField endDateField = new DataSourceDateField("endDate", "Enddate"); startDateField.setTimeFormatter(TimeDisplayFormat.TOSHORT24HOURTIME);
Did anybody have similar problems with the Calendar or could give any hint to why this happens?
SmartClient Version: 8.2/LGPL Development Only (built 2011-12-05)
Browser: Internet Explorer 9.0.8112.16421.
Comment