Skip to content
This repository has been archived by the owner on Nov 10, 2018. It is now read-only.

[Bug?] Negative padding in a centered UI List Layout causes the elements to no longer be centered. #839

Open
GooseLifter opened this issue May 15, 2017 · 1 comment

Comments

@GooseLifter
Copy link

I have a List layout in a frame (green). I have several elements (noobs in this case) that I want to have negative padding so that they "lay on top" of each other, like cards. However, negative padding causes the list to be offset to the right for some reason. Of course, the list is set to be centered in properties.

Horizontal list with no padding
Horizontal list with negative padding

@GooseLifter GooseLifter changed the title Negative padding in a centered UI List Layout causes the elements to no longer be centered. [Bug?] Negative padding in a centered UI List Layout causes the elements to no longer be centered. May 15, 2017
@GooseLifter
Copy link
Author

Reproduction: I ran into this when using a UIListLayout set to horizontal list, centered both horizontally and vertically. When negative padding was applied to the list layout, the elements became off-center. This occurs if either scale OR offset for padding is negative.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant