Anaminus / roblox-bug-tracker

Formerly an unofficial bug tracker for Roblox.
33 stars 24 forks source link

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

Open GooseLifter opened 7 years ago

GooseLifter commented 7 years ago

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 commented 7 years ago

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.