Text scrolling breaks upon resizing while focused

Tweening the size of a TextBox while the focus is captured causes text to be improperly scrolled off-screen until the user either manually scrolls to the front, or the focus is lost, as shown in the video below.

Video

Repro File

TextScrollingBugRepro.rbxl (54.6 KB)

Expected behavior

It makes sense that the text scrolls to the end to reflect the cursor position, however as the TextBox size increases, I’d expect scroll would be influenced as well, and fit the text within.

Thanks for the report! We’ll follow up when we have an update for you.

1 Like

Hi @yellp1, currently our TextBox scrolling doesn’t account for size changes while focused. We’ve created a ticket to look into adding support in the future.

As a workaround for now, you should be able to focus after the tween animation is complete. Is this a satisfactory workaround for your use case?

The fix for this is in the next release and will be rolled out shortly after, thanks!

3 Likes

The fix should be deployed now, and the content should animate with the tween. Let us know if you encounter any further issues!

1 Like

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