openGeeksLab / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

Latest release shows wrong DateTimeSpinner day display #1380

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This issue is seen on both the simulator, and a device.

What steps will reproduce the problem?
1.Create a DateTimeSpinner, and add it to a form.
2.The day list contains the wrong range of days, when compared with the day 
which is focused.

What is the expected output? What do you see instead?
The expected output is a range of days which correspond with the day that is 
focused.

What version of the product are you using? On what operating system?
The latest version, on both Android 5 and Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by tuga...@gmail.com on 28 Feb 2015 at 6:08

GoogleCodeExporter commented 8 years ago
Sorry guys, please close this issue. The reason why the date appears garbled 
like this, is because the current date is not within range of dates. You can 
reproduce this by setting a start date and end date on a DateTimeSpinner, and 
setting a current date which does not exist within the defined range. I am 
pretty sure that someone else is going to have the same problem, and will most 
likely open an issue, thinking that this is a bug. A nice way to handle this, 
may be to append the current date to the beginning of the list, if comes before 
the range, or at the end of the list, if it comes after the range. This way, 
you won't have a date which is just hovering over the rest in limbo.

Original comment by tuga...@gmail.com on 1 Mar 2015 at 4:51