I can't seem to figure out the rhyme or reason behind the X/Y values when trying to align objects.
Sometimes 0 means the top Z-order item is perfectly aligned with the lower Z-order item.
Other times -1 means the top Z-order item is perfectly aligned with the lower item
Can someone share the logic of what's going on with these X/Y values
Thanks
Hi David!
I think the differences are caused by the padding on the item.
Since repeater items can be autosized (ie. they can automatically resize just to include their content), they include a 'Padding' property that lets you set an amount of pixels that must be present between the edges of the item and its content. Items have a default padding of 3px, which you can change on the property editor.
The x/y coordinates are given to the top/left of the parent's content area, which does not include the padding. If you don't need the padding you can just set it to 0 on the item template (as shown below), and the x/y will be relative to the end of the border area of the parent item.
Let us know if this help you!
Best regards,
Santiago.
Indigo Studio Team.
I'll keep an eye out for the padding to see if that's the issue.
It seems intuitive that the 0/0 should coincide with the purple dashed alignment lines, but often that's not the case, which makes it confusing to determine what's going on.