The button widget seems not to work correctly when setting the left and the top values, my buttons were all aligned correctly and then the update pushed them all left.
If you don’t set left and top and set x and y, it seems to ignore the anchor values, so for instance if I set anchorX =0.0 for my button and set the position x=0 then you’d expect the button to be placed on the left edge of the screen, instead it puts the center point of the button at 0 and appears half off and half on. This was working before the recent changes.
This is the first time I’ve used the button widget in many a version. So I can only speak for the latest build.
Also, the size of the button changes between different device sizes on the simulator (mac and windows). So the size difference is not due to the stroke as I originally thought as it is still smaller when that parameter is removed.
I’m also getting runtime errors on button touch when adding a strokeWidth. Tried filing a bug report but I didnt get a confirmation so I don’t know if it was received.
Can you please post your code? In the future, we appreciate if you attempt to get help in the forums before you file a bug report. It might be one tiny issue with your code, and not a bug in the SDK.
It appears that you omitted the “over” color table for the stroke. I believe both are required if you use the “strokeColor” parameter. Please add that and see if the error stops.
Happy to help. If you receive a confirmation on the bug case you filed, can you please post the # here? I would like to close that case since it’s not a bug.
No confirmation on my end as of yet, and I recall having trouble getting my bug reports received back in August. Not sure if there was something wrong with my account, or the form, and whether this was sorted out since then.
This is the first time I’ve used the button widget in many a version. So I can only speak for the latest build.
Also, the size of the button changes between different device sizes on the simulator (mac and windows). So the size difference is not due to the stroke as I originally thought as it is still smaller when that parameter is removed.
I’m also getting runtime errors on button touch when adding a strokeWidth. Tried filing a bug report but I didnt get a confirmation so I don’t know if it was received.