Android Question AS_Datepicker into panel

I'm using AS_datepicker (ver. 1.22) with ASViewPager (ver. 2.04) and i've notice an issue when the as_datepicker is into a panel that has visibility to false. When I set panel.visible = true the calendar has the header with the right Month/Year but if i select a date it returns the date with year before. If i select the next month and then came back it returns the right date.
In the same page, if i start with the panel.visible = true all is right.
I've used Refresh, Rebuild... with no results.
Anyone can help me?
Thanks a lot

Guido
 

Alexander Stolte

Expert
Licensed User
Longtime User
i've notice an issue when the as_datepicker is into a panel that has visibility to false
Thats right. It's a limitation of the native scrollview in android and the AS_ViewPager is based on the native scrollview in b4a.
has already been discussed several times here in the forum.
 
Upvote 0
Thanks for your replay.

I've found a workaround:
panel.visible = true
sleep(0)
AS_Datepicker.Scroll2Date(DateTime.now)

So it show and returns the right date.

It works fine for me.

Thanks again
Guido
 
Upvote 0
Top