Android Question openspinner with reflector question

giggetto71

Active Member
Licensed User
Hi,
I am opening a spinner upon clicking on a label object. In the label click event I call

B4X:
Sub OpenSpinner(s As Spinner)
    Dim r As Reflector, sp As Spinner
    r.Target = s   
    r.RunMethod("performClick")
    DoEvents   
End Sub

the code works fine but I would like to open the spinner in the same top and left position of the label so before calling the OpenSpinner function, I set both properties but It really looks like only the left property is set..

B4X:
....
spValues.Top = lbl.Top
spValues.left = lbl.Left
spValues.Visible = True
OpenSpinner(spValues)
...

any idea why the top property seems not to set?
thanks
 
Top