AutomaticSize includes invisible GuiObjects

Prior to 575, AutomaticSize did not include the AbsoluteSize of GuiObjects whose Visible property is set to false.

Now that it does, it breaks any use case where any GuiObject which may be made invisible constrains the size of it’s containing automatically sized parent GuiObject, even when invisible. This makes AutomaticSize useless, since the flexibility of the layout becomes restricted, regardless of visible state.

incorrect-automaticsize-behavior.rbxl (43.7 KB)

Expected behavior

  • Changing Blue’s Visibility to true should change Red’s AbsoluteSize to 100, 100
  • Changing Blue’s Visibility to false should change Red’s AbsoluteSize to 100, 0

Thanks for the report! We’ll follow up when we have an update for you.


No, it’s been including invisible objects for a while now. I’ve only seen it happen when it’s a descendant of a frame with AutomaticSize, not a child. I’ll try to send my own reproduction file later, I can’t right now.

This should be fixed - are you still having the issue?

1 Like

According to the repro file provided, this issue is fixed! Thank you

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