Why are Control.Left and Control.Top in iOS reporting nothing ?

I could really use controls Left and Top properties which are indicated at http://developer.xojo.com/ioscontrol$Left as read only.

They simply report zero.

That does not seem normal. Or is it ?

Please file a bug report about this

[quote=292472:@jean-paul devulder]Using this hack for getting correct position:

demo here:

Display on console, the control position[/quote]

Thank you Jean-Paul :slight_smile:

I am going to try that right away

45507 - iOS : iOSControls Left and Top report zero instead of the read only value expected
Status: Needs Review Rank: Not Ranked Product: Xojo Category: N/A

Michel Bujardet Today at 1:18 AM
OS: OS X 10.12.1

Xojo: Xojo 2016r3

Steps: See https://forum.xojo.com/35817-why-are-control-left-and-control-top-in-ios-reporting-nothing/last

Load the attached project. It should display left and top of the rectangle, but only zero is displayed.

I tried with other controls with the same result.

<https://xojo.com/issue/45507>

Jean-Paul, your demo works great. Thank you so much. It will save my skin for my current project.

[quote=292472:@jean-paul devulder]Using this hack for getting correct position:

demo here:

Display on console, the control position[/quote]

Hum. I just found out that sometimes, top is reported incorrectly (201 instead of 95 for instance). I have since moved to using a constraint.

At any rate, the bug is corrected for the next version.