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
Yes, when getting to the border of the element, the snap lines could be confusing. You have two different snap lines:
1. One for the content (the one at 0 on the first example on the snapshot below).
2. One for the border (the one at -10 on the second example)
So when you have a border of 1px (the default), one line will be next to the other.
Also, when you have padding, the one on the content will be aligned to the padding, so you will have the 0 as in the third example.
Let us know if you have any suggestions for improvements, I'll bring this up with the team to see if there are ideas or opinions about it.
Thanks for the feedback!
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.
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!