UIAspectRatio and TextSize Constraints not rescaling descendants when GuiObject instance is not visible

GuiObjects that possess the UIAspectRatioConstraint and UITextSizeConstraint will not resize their descendants accurately on Studio or on games when you resize the window and they are not visible on the screen at that point in time.

Reproduction steps:

  1. Create any UI element with an UIAspectRatioConstraint parented to it.

  2. Parent another child UI element to it and scale it and position it relative to the parent UI.

  3. In-game, set the visibility of the main UI element to false (doesn’t matter if you use command bar or an actual script).

  4. Drag the screen to be smaller.

  5. Set the visibility of the main UI element back to true.

  6. You should observed a warped iteration of the original element you had.

  7. If you drag the screen again when it’s visible, it will automatically correct the issue.

This issue is occurring both in studio and in live games. I believe it started occurring recently, as this was not an issue I observed earlier with a similar interface base.

Reproduction File:
Resizing.rbxl (35.0 KB)

1 Like