Skip to first unread message
Assigned to kkas...@gmail.com by halatmi...@gmail.com

hect...@gmail.com

unread,
May 20, 2014, 8:44:46 PM5/20/14
to mitappinv...@googlegroups.com
Hi, I was testing the new spinner and I think that I found a bug on it. Because the event .afterselecting is called inmediately after the screen is created? I'm doing something wrong or Its just a minor bug.

Best regards! Hector

josmasflores

unread,
May 21, 2014, 9:09:20 AM5/21/14
to mitappinv...@googlegroups.com
Could you please attach an aia file (the simplest you can come up with) that reproduces the error?

I am wondering if this happens when you select a default value for the spinner or even without a selected value?

M. Hossein Amerkashi

unread,
May 21, 2014, 9:30:05 AM5/21/14
to mitappinv...@googlegroups.com
Jos,

It is true. It will need some flag like isInitialized with default value of false.

If bug verified, I can address it.

-Hossein.

josmasflores

unread,
May 21, 2014, 3:31:48 PM5/21/14
to mitappinv...@googlegroups.com
Hi Hossein, there's another report in G+ so I guess it is an issue. Would be great if you have time to have a look!

hect...@gmail.com

unread,
May 22, 2014, 12:41:49 AM5/22/14
to mitappinv...@googlegroups.com
There is the simplest test possible, when you load the screen automatically selects the first value. Please let me know if there is any solution.

Thanks for the quick answer
PruebaListas.aia

M. Hossein Amerkashi

unread,
May 22, 2014, 6:49:14 AM5/22/14
to mitappinv...@googlegroups.com
Thank you hectoritr,

We are looking into this.

-Hossein.

Hal Abelson

unread,
May 22, 2014, 11:01:31 PM5/22/14
to mitappinv...@googlegroups.com
I think the problem is that the spinner dropdown is being opened in the button press event handler, but I'm not sure.
If that's the cse so, then this is a problem in App Inventor that we'll need to deal with -- not your fault.


Hal Abelson

unread,
May 22, 2014, 11:24:51 PM5/22/14
to mitappinv...@googlegroups.com
It looks like this problem does not happen with a ListPicker, so try using that instead of a Spinner

hect...@gmail.com

unread,
May 23, 2014, 12:02:14 AM5/23/14
to mitappinv...@googlegroups.com
I know that the ListPicker works fine, actually I'm using it right now, but the spinner i'ts really nice and I want that for my app. The Listpicker with tha black background Its really ugly.

Thanks Hal! :)

M. Hossein Amerkashi

unread,
May 23, 2014, 7:06:04 AM5/23/14
to mitappinv...@googlegroups.com
hectoritr,

The reason the Spinner1 AfterSelection is not getting triggered is because your Spinner1 is set to Hidden
If you set the Spinner1 to Visible, then the AfterPicking WILL get triggered. For the time being, to give it effect of Hidden, make it Visible and set the Width, Height to 1, 1 pixel (as workaround for time being). However, if you make it Visible, on startup, by default, the AfterPicking WILL get triggered which is not correct behavior. 

We are in process of fixing the above issues.


-Hossein.

Simon Fitzpatrick

unread,
Jun 9, 2014, 12:37:41 PM6/9/14
to
Hi

I am liking the Spinner, but I too am having some issues:

1) As above, Spinner.AfterSelection is not triggered when the Spinner is hidden
2) Spinner.AfterSelection is not triggered if you choose the same value, regardless of setting Spinner.Selection to blank beforehand.

Kind Regards
Simon
Reply all
Reply to author
Forward
0 new messages