Skip to content

Many important issues fix

Compare
Choose a tag to compare
@zjfjack zjfjack released this 18 Dec 05:36
· 49 commits to master since this release
eb789aa
  1. Bugfix all-day scroll from bottom

Issue: When calendarView is scrolling at the bottom, and at the same time AllDayHeader height decreased, it will cause some view jumping and flickering issue. It is probably because the contentSize height become shorter, the view should scroll up automatically but it reaches the bottom currently, then it will cause that kind of issue.

Solution: Fixed this issue in quick swipe condition, but for slow swipe, I just keep the same height until the swipe ends.

  1. Section grid width different in some cases #30

Issue: Because previous framework is using some nearbyint method to cast the CGFloat to int, which will cause the distance between different grid x might be different. As a result, when using sectionScroll, you will notice some events' sizes changed, actually they are the same, only because the grids distance is different.

Solution: Automatically increase the rowHeaderWidth if the sectionWidth cannot be Int.
For sectionWidth decimal part, 0-0.25 -> 0, 0.25-0.75 -> 0.5, 0.75-0.99 -> +1
which means the rowHeaderWidth can only be changed within 0.25*numOfDays CGFloat, and it should be reasonable.

  1. Fix AllDayHeader constraints issues & Improve AllDayHeader updateView logic
    For those iOS 9 devices, the Xcode console prints warnings when AllDayHeader height become 0 because the padding constraints being set to a value before. I added priority to the constraint to resolve this issue.

  2. Update LongPressWeekView time label text access level #34