Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Offset is off when setFollowScroll is enabled #7

Open
badoualy opened this issue Jul 12, 2017 · 2 comments
Open

Offset is off when setFollowScroll is enabled #7

badoualy opened this issue Jul 12, 2017 · 2 comments

Comments

@badoualy
Copy link
Owner

The alignment is not perfect, sometimes the offset is a bit off

@magnusfernandes
Copy link

@badoualy on init, when we set the date, can the view center that particular date?

@simoneraffaelli
Copy link

simoneraffaelli commented Jul 24, 2019

@badoualy on init, when we set the date, can the view center that particular date?

You can do it by yourself:
date.setFirstVisibleDate(now.getYear() - 1, Calendar.JANUARY, 1); date.setLastVisibleDate(now.getYear() + 2, Calendar.DECEMBER, 1); date.setSelectedDate(now.getYear(), now.getMonthOfYear() - 1, now.getDayOfMonth()); date.setFollowScroll(false);

Where date is the datepicker e now in DateTime.now() of JodaTime

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants