Issue 1108: Event position broken when some events are suppressed
Status:  Released
Owner: ----
Closed:  Aug 2013
Reported by roundc...@gmail.com, Sep 8, 2011
When using the eventRender callback function to suppress certain events by returning false, the positioning of subsequent events gets messed up. The result is that all event's are placed at the top of the according day cell.

I tracked the problem down to the loop in DayEventRenderer::renderDaySegs() where the top coordinates of all event blocks are computed. Those segs which don't have a DOM element (due to the suppression in eventRender) have not defined seg.outerHeight and thus adding this value will result in NaN.

Please find attached a sample which illustrates the problem and a patch to fix it.

Steps to reproduce (in attached sample):
1. Create a calendar with 5 events in one day (Sept, 26th)
2. Define a eventRender callback function which returns false for the 3rd event of that day

Expected result:
Events #1,#2,#4,#5 are shown below each other

Observed result:
Only two lines are displayed whereof events #4 and #5 are positioned on top of Sept, 26th

positionbug.html
2.1 KB   View   Download
dayseg_position_fix.diff
260 bytes   View   Download
Sep 9, 2011
Project Member #1 althaus.it
(No comment was entered for this change.)
Status: Reproducing
Aug 13, 2013
Project Member #2 adamrs...@gmail.com
this has been fixed (i forget which release). thanks
Status: Released
Labels: Type-Bug