TextWrapped does not work correctly with AutomaticSize & ScrollingFrame

TextBox (AutomaticSize set to Y) within ScrollingFrame (AutomaticCanvasSize set to Y) does not function properly whenever TextWrapped is enabled - TextBox is not resized in Y direction after the text exceeds available space in Y. When TextWrapped is off, everything works just fine.


ReproUI.rbxm (6.6 KB)

Expected behavior

ScrollingFrame should be properly resized in Y in both cases (TextWrapped just wraps the text in X…)

Hi @Etheroit - at first I thought maybe the TextTruncate was causing the issue, but the issue is happening regardless of the truncate setting as far as I can tell, very odd. Thanks for the report! We have added this to our backlog.

Yep! I added the text truncating to add clarity but it indeed also happens without setting it.

Really weird issue. Hoping it’s easy enough to fix. Thanks for getting back!

So, when will this be fixed? I still have issues with this. I tried this today:

External Media

In the clip you can see everything has automatic size enabled and the textbox has TextWrapped and Multieline on.

Hi @DeEchteBelg thanks for bumping this ticket. I went ahead and bumped this up in our backlog as well. Automatic size issues have been historically difficult for us to resolve without introducing new bugs, however we can take a look at this and see if there is a fix that is low risk!

We will post on this thread when we have new updates to share. Thank you for your patience :folded_hands:

I am unsure if this is related or if it is a different issue, but TextWrapped does not work correctly with AutomaticSize in my custom chat UI.

Current result:


Expected result (made with manually entering frame size):

It simply does not scale properly to show text fully and stops before ending last sentence.


edit:

[spoiler]


Funnily enough, if you enable RichText you will be able to see what part of text has been hidden.


edit 2:

Found a workaround! First you have to enable RichText and TextWrapped then you have to disable TextWrapped and enable it again. However, it does not work if I write this work around in a LocalScript.

[/spoiler]

edit 3:

After an hour of playing around I found how to fix this manually without writing any code (however, I am not leaking the file :stuck_out_tongue_winking_eye:). DM me if you have the same issue, I will be glad to help you.

I have had this issue before.

  1. Use RichText (like @frostxoff mentioned)
  2. Add a UIListLayout as a child of the ScrollingFrame (no need to edit any properties of it)

Bumping this topic to confirm that the bug is still active 8 months after the report. We shouldn’t need to rely on workarounds for basic UI behavior. (Although enabling RichText does fix AutomaticSize with Wrapped Text, the workaround is disabled while editing text in a TextBox (since RichText is forced to be unformatted while editing))

bumping this cuz oh my god i was losing my mind trying to figure out this