-
Notifications
You must be signed in to change notification settings - Fork 819
Question - scrolling to wrong offset #211
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
Comments
So you're saying that when the user does step |
Yup, im just about to head off to bed. I'll try to take a look tomorrow and provide more information. However, i may only get time to look at it on Monday. |
@roarapps alright then. I'll check with you later then. |
Just some notes to remind me when i look at this again - It scrolls backwards to the start of the calendar + 1 month. This seems like when i go Next, it thinks the current month is the start month. It only happens if i have a date, or dates selected It only happens one time, i have to reinit to replicate again. |
one thing to try.
Then do a:
on console |
Okay, i'll try this in the afternoon (UK time) and report back |
Hello, I was already on the master branch. I will try to replicate the issue using your example app to make sure its not anything obvious i'm doing wrong and report back |
@roarapps ok if youre on master. Do a |
Okay, haven't managed to replicate on your example project but on my project i've commented all excess code out so it's just the calendar view with basic code left. I've did a pod install as well, if this line is commented out, there is no issue Just trying to figure out exactly where its going wrong. |
alright. let me know. Can you tell be what you are doing in your viewDidLoad? |
The only difference between our code now is that I have a splitview controller, but can't see how that would affect anything. override func viewDidLoad() {
super.viewDidLoad()
self.navigationItem.title = "Calendar"
calendarView.dataSource = self
calendarView.delegate = self
calendarView.registerCellViewXib(file: "CalendarCellView") // Registering your cell is manditory
calendarView.scrollingMode = .stopAtEachCalendarFrameWidth
calendarView.cellInset = CGPoint(x: 0, y: 0)
calendarView.scrollToDate(Date())
calendarView.allowsMultipleSelection = true
dateFormatter.dateStyle = .medium
} |
join me here -> https://gitter.im/patchthecode/JTAppleCalendar |
Sorry missed that message and was working on something else today, i will jump on that channel tomorrow |
Can you supply an email where i can send a zip of an example project with this defect |
Hey man. |
By the way, sometimes Anyway, in case you do a pod install and your code still is not fix, delete the |
Same issue, i deleted the pod and cleaned project. Its definitely getting the latest. I emailed you the splitview controller project, were you able to replicate on there using iPad sim? "Installing JTAppleCalendar (6.0.4) |
Yes i able to replicate the issue. |
Hello,
Have an interesting one, i have my calendar set up to display 1 year either side of today. Everything is great, the calendar loads to today when i show it.
I have calendarView.allowsMultipleSelection = true, so user can select and deselect dates.
Issue -
Strangely, i can only replicate this on the iPad and not iPhone. This only happens when i invoke deselectAllDates.
I will look further into this tomorrow, do you know why this may be happening? I will need to step through code tomorrow but if you had a good place for me to start it would be helpful.
The text was updated successfully, but these errors were encountered: