-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi everyone,
I'm getting an exception when I have two or more thin events (duration lower 30 minutes).
The View must be "Day" or "Week" and the events must have the begin date from 23:40
I have been able to reproduce on the ZK Calendar demo web: http://zcal.zkoss.org/
Some screenshots:
First Event:
Second Event:
Any ideas how I could fix it? Although, It seems a ZK issue.
Thank you!
Thanks for your report. I have created a tracker for this bug: ZKCAL-70
You can apply the js workaround attached in the tracker.
Push up again!
I am not able to recreate it anymore, thanks @hawk!
Let me attach the JS code:
/**
* for ZKCAL-70
* based on 2.1.5
*/
zk.afterLoad('calendar', function() {
var oldWidget = {};
zk.override(calendar.CalendarsDefault.prototype, oldWidget, {
getTimeIndex: function (date) {
var timeslots = this._timeslots,
timeslotTime = 60/timeslots,
index = ((date.getHours() - this._bt) * timeslots) +
Math.floor(date.getMinutes()/timeslotTime);
return index;
},
});
});
Asked: 2015-03-13 16:38:47 +0800
Seen: 29 times
Last updated: Apr 11 '18
How to add zCalendar events on startup through java code.
Calendar month view - title instead of content
zk calendar onEventCreate doesn't work notifyChange
Calendars - Custom CSS and HTML
Calendar translation (german) for setWeekOfYear(true)
Can I dowload the ZK Calenda demo? [closed]