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