MBCalendarKit icon indicating copy to clipboard operation
MBCalendarKit copied to clipboard

Cell Transition Animation Bug

Open MosheBerman opened this issue 7 years ago • 1 comments

Transitioning from month to month when the months have different weeks are slightly off.

To reproduce, use the arrows to transition from December 2017 to November 2017. Observe the cell spacing during the animation. The cells should slide seamlessly into view, but there's a noticeable gap. Custom cells with transparent backgrounds might see this as overlap as well.

When the months before and after the transition have different numbers of weeks, this becomes an issue.

I think this is because we're using the contentSize of the collection view prior to transitioning as the offset for the new cells. This is probably wrong (or my understanding of how I'm doing the measurements is wrong.)

MosheBerman avatar Aug 17 '17 22:08 MosheBerman

The fix for this is probably in CKCalendarModel+GridViewAnimationSupport.m.

MosheBerman avatar Sep 11 '17 17:09 MosheBerman