Chat Bubble TextWrapped with AutomaticSize and TextTruncate bug

For my game, I implemented a custom chat bubble system. For some reason, when using TextTruncate (AtEnd) with automatic size and TextWrapped, the text appears truncated on other’s devices (but not mine for some reason, including on my phone) on PC and Mobile. The text truncates even when there is clearly enough space to display the rest of the sentence.

My friend’s screen:

My screen:

Expected behavior

What I expect to happen when a player chats is, the message is displayed in the chat window and the chat bubble is displayed over their head, with the correct size and full text.

A private message is associated with this bug report

1 Like

Try adding an extra 5 pixels to the chatbox on both sides on whichever code you’re using, I could replicate it if you put the code. Also please don’t use “ts” on Roblox, it does NOT mean “this”, it means “this sh**”. This should also be in scripting support, not bug reports.

First off, I already adding padding to both sides of the chat bubble to try and fix this. Secondly, I am not the one typing in the image, nor do I see how that is relevant. I am pretty sure this is a BUG and not a mistake by me from the fact that it’s normal on my screen, but doesn’t work for others. I have also seen devforum bug reports from 2021-2022 about this same issue.

how much padding did you add? i know it isn’t relevant, but remember roblox is a kid’s game, you shouldn’t be swearing in front of 2 year olds. since it’s custom made, have you also tried removing the original chatbubbleconfiguration considering it’s happening to you but not others? also if this post has been already made, the moderators may remove your post.

I added 5 pixel padding on each side of the chat bubble. I feel like the issue shouldn’t be happening even if I didn’t have padding, seeing as I have AutomaticSize on, which should automatically make it so the text appears anyway. I have disabled all of the default TextChatService instances. I’m not sure if this exact bug post has been made before, but similar ones have. I didn’t see anything recent, so I feel like this is still a valid bug to post about.

can you tell me your results without texttruncate?

The results without texttruncate just make it so the text doesn’t appear, instead of adding the …

what about turning off automatic size? theres plenty of speech bubbles that look like this without these problems, i think you should download an rbxm file for these unless you want to code it yourself

I took a brief look myself and couldn’t get it to reproduce immediately on my Studio, though it appears there could be some ui layout issues at play here.

Out of curiosity, what would the result be if you:

  • left BubbleFrame’s AutomaticSize as XY (as it is already), but set the Size to 1, 0, 0, 20
  • Set the parent (usually named 1) of BubbleFrame AutomaticSize to XY as well (it’s currently set to None)

It looks like this may have some impact on the bubble grow animation springs but I have not had a ton of time to dig into this layout issue.

(Cool chat btw)

Thank you!

When doing this (and setting the size of the parent of BubbleFrame (named 1) to 0, 0, 0, 0), the result is still the same as it was originally. (picture below)

i fixed it by making my own custom textwrapping

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