Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1935
Alignment of screen elements
posted

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

Parents
  • 1075
    Verified Answer
    posted

    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.

Reply Children