UILayout.AbsoluteContentSize does not update when last visible child is removed

When removing a GuiObject and it is the last visible child being affected by a UILayout instance, the AbsoluteContentSize property is not updated. This breaks the parent’s AutoSize property and the ability to use the AbsoluteContentSize property for manual rescaling.

A work around is to have an invisible child and toggling it’s Visible property on and back off after this element is removed to trigger an update.

These demo videos are in the studio editor, but the behavior persists in-game.

Expected behavior

When removing the GuiObject, the AbsoluteContentSize property should update as well as the size caused by the parent’s AutomaticSize setting.

1 Like

Hi, I am unable to repro this in Studio. If this issue is still occurring, can you please send a repro file?

I can’t repo this behavior anymore either, it appears to be fixed :+1:

1 Like

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