-
Notifications
You must be signed in to change notification settings - Fork 810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible regression introduced between version 6.1.2 and 6.1.3 #344
Comments
Hi @patchthecode, I've done a bit of debugging and I tracked down the problem to this diff: @@ -421,17 +410,15 @@ open class JTAppleCalendarView: UIView {
}
let section = CGFloat(Int(theTargetContentOffset / fixedScrollSize))
- let destinationRectOffset = fixedScrollSize * section
- var x: CGFloat = 0
- var y: CGFloat = 0
- if direction == .horizontal {
+ let destinationRectOffset = (fixedScrollSize * section) + 1
+ var x: CGFloat = 1
+ var y: CGFloat = 1
+ if scrollDirection == .horizontal {
x = destinationRectOffset
} else {
y = destinationRectOffset
}
- retval = CGRect(x: x, y: y, width: calendarView.frame.width, height: calendarView.frame.height)
-
- return retval
+ return CGPoint(x: x, y: y)
} In my testing reverting to the old way of calculating the resulting CGPoint solves the problem. |
thanks for finding this. I may have accidentally put that code back in. |
Nice to be helpful 😊 Feel free to close this issue if you think that you do not need it any more. |
Oh ok. This is an issue that I have fixed on master branch already. If you want to use the master branch code, you can put his in your pod file:
then do a pod install. |
I wil leave this issue open until i release, so that other will know. |
I'm still with carthage 😊 Thanks again. Bye. |
closing issue |
Hi, I'm experiencing a visual glitch on the first tap on my JTAppleCalendar: the whole calendar seems to be shifted downwards and rightwards by few points.
Context:
I traced the problem down to some modification between versions 6.1.2 and 6.1.3. More in particular:
Hope this helps to fix the problem. Thanks again for the great library.
The text was updated successfully, but these errors were encountered: