ongrace / android-dateslider

Automatically exported from code.google.com/p/android-dateslider
0 stars 0 forks source link

time limits are not respected when sliding with month on datetime sliders #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Modify Demo to pass a minimum date to limit datetime slider
2. Slide month to the minimum date

I would expect that the time limit is respected also when sliding year like it 
does on sliding day or time.
Instead I get different timelimit with sliding on month.

Tested on Nexus S with Android 2.3.4 and using 1.2 Date slider version.

Thank you for your work.

Original issue reported on code.google.com by andreata...@gmail.com on 11 Sep 2011 at 1:47

GoogleCodeExporter commented 9 years ago
This seems like a rounding issue. There are simply not enough pixels in the 
month slider to exactly hit the right minute of the limit. A change of one 
pixel of the month sliders causes the time slider to move 4 hours.
The DateSlider does is not "defective" in this scenario, it's just that it 
could deal a bit more intelligently with those borderline cases!

Original comment by daniel.b...@gmail.com on 7 Nov 2011 at 11:42