UIGridLayouts break ScrollingFrame & Text GuiObject AutomaticSize

UIGridLayouts that change the AbsoluteSize/AbsolutePosition of their siblings who are ScrollingFrames with an AutomaticCanvasSize property that is equal to Enum.AutomaticSize.Y break the automatic sizing of all TextLabels and TextButtons who are descendants of the ScrollingFrame(s) and who have an AutomaticSize property that is equal to Enum.AutomaticSize.Y

Sorry that this is so convoluted - it was difficult to produce a repro to this: UIGridLayouts sometimes do not re-render some GuiObjects when parented away, and only re-parenting the children themselves forces a re-render.

uigridlayout-scrollingframe-textobject-descendants-incorrect-automaticsize-behavior.rbxl (53.8 KB)

Steps to reproduce with the file provided:

  1. Parent the UIGridLayout under StarterGui to the ScreenGui under StarterGui
    • Every TextButton and TextLabel will change to report 0 for their AbsoluteSize.Y
  2. Parent the UIGridLayout back to StarterGui
    • Every TextButton and TextLabel will resize to correctly report their height

This bug occurs regardless of whether the UIGridLayout parent is a LayoutCollector or GuiObject, but only affects the UIGridLayout’s siblings and those siblings’ descendants

Expected behavior

TextObjects’ AbsoluteSize should be equal to at least some combination of:

  1. Their TextBounds
  2. Their children who are GuiObjects’ AbsoluteSize (if applicable)
  3. Padding from a child who is a UIPadding (if applicable)
  4. AbsoluteContentSize from a child who is a UIGridStyleLayout (if applicable)
6 Likes

We’ve filed a ticket into our internal database for this issue, and will come back as soon as we have updates!

Thanks for the report!

5 Likes

I would also like to point transferring uis from one experience to another one in the studio causes them to break as well. Along with when you fix the issue and can duplicate frames under a uigridlayout then leave the studio and come back it breaks once you try to duplicate it.

2 Likes

Hi @Focia19 , we have recently deployed a fix for this issue. Please verify on your end and let us know if it still happens! Thank you.

2 Likes

Hi,

I can confirm that the issue reproducable in the provided repro file is fixed, and behavior is as expected, as far as I can tell.

It’s worth noting that a related issue is blocking us from knowing if the AutomaticCanvasSize property sizes properly when adding children in the frame itself.

This issue appears to be solved locally, withstanding blocking issues with AutomaticCanvasSize. Much thanks for the help!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.