When using a UI element that uses TextScaled + AutomaticSize (for this demonstration, only AutomaticSize X will be used), it would rather size the text down than utilize the automatic size leverage given.
This is even worse when paired with a UITextSizeConstraint that limits the minimum size, thus cutting the text off entirely instead of yet again trying to utilize the free space that the frame could stretch out to.
Example (TextScaled + AutomaticSize X only):
The selected UI Element should scale horizontally, however, it doesn’t want to scale in any way and would rather scale down and wrap around, which is an illogical preference.
Example 2 (TextScaled + AutomaticSize X + UITextSizeConstraint minimum size 20):
For reference, the text that should appear is supposed to say “Long Text Example” However, due to the cutoff/sizing issues, it only shows “Long Text”
(Proof in case you think I’m wrong/lying):
Expected behavior
What should happen is that the frame should instead scale horizontally instead of scaling the text downwards and wrapping it. There should also be a way to turn off TextWrapped while having TextScaled still active, however, this hasn’t happened yet despite many people wanting it to happen.
I’m running into this issue as well. It was working correctly a few weeks ago.
EDIT: I think it’s specifically the TextWrapped property causing this. Even with TextScaled disabled, AutomaticSize will not work unless TextWrapped is disabled.
This it not a bug, it is intentional.
AutomaticSize and TextScaled perform opposite tasks.
AutomaticSize expands the container to fit the text while text scaled dynamically adjusts the size to fit the container. They basically do the opposite
Why should this be intentional when in other scenarios it works fine?
If the automatic size is set to x only, and the text is size locked from going past 28 or whatever, then the label itself should just scale more horizontally since that’s what it can do.
What I don’t think I mentioned is that the behavior works when the text has 8 or fewer characters, but as soon as it passes 8 characters, it just cuts the text off. Other than that, it will perfectly scale and lock where it should.
For the most part, this was actually a bug, and has already been (for the most part) fixed since this post was a long time ago.
Side note: Automatic Size works fine with Textscaled normally and are not direct opposite tasks. when automatic size and textscaled are paired together and include a locking mechanism (maxtextsize or limiting automatic size to one axis) then it will (usually) work, but this post was about a specific time where it did not work.
Thank you for responding, though.