Unexpected behaviour for GuiObject.AutomaticSize when UIScale.Scale is not equal to 1 in value

This post highlights the issue with GuiObject.AutomaticSize when a UIScale is used and its .Scale property is set to a number value that is not equal to 1.

Say if a TextLabel has AutomaticSize set to Enum.AutomaticSize.Y and has its Size set to UDim2.fromScale(1, 0). This will scale the TextLabel's content to the theoretical fitting size value as long as TextWrapped is set to true. Which is correct. However, this becomes different when a UIScale is parented inside the TextLabel and the Scale property is set to a value that is not equal to 1. For instance, 1.9, 0.7. Now, the behaviour for AutomaticSize would be that it will not scale the content to the theoretical fitting size value, as AutomaticSize will not calculate the value. So UIScale is actually referring to the previous calculated size instead.

To support this case, I have a video reproducing this bug.

As you can see, the text is broken and the last line went vanished when UIScale.Scale is being changed

3 Likes

Thanks for the report! We’ve filed a ticket to our internal database, and we’ll follow up when we have an update for you.

1 Like

Hi @7kayoh , is this issue still happening on your end? If so, please provide a repro file. Thank you!

@7kayoh we haven’t heard back and will close this ticket for now. Please open a new ticket if this is till occurring. Thanks.

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