AutomaticSize breaks with UIPadding + statically sized children

As you can see on the attached screenshot (and place file), the green box overflows red box, ignoring PaddingBottom property on the UIPadding. This occurs when using statically sized frames, under a frame which size is managed by AutomaticSize property.
Structure:

  • Parent frame (AutomaticSize = Y)
    • Frame (AutomaticSize = Y)
      • UIPadding
      • Frame (Statically Sized)
        • Everything works correctly, unless we add another instance inside of the statically sized frame (see screenshot)


bug.rbxl (62.7 KB)

Expected behavior

The green frame to be inside of the red frame, padded correctly from top and bottom

4 Likes