Chat Box is huge when typing?

When starting to type in my game now suddenly the chat box grows huge.

So i’m not sure what is going on, recent things I did to the game was change some GUI images. Like I have not altered anything to do with the chat so I’m pretty confused as to why this is happening? Anyone know any general causes to this? Or maybe just something that will fix it? Like an override or something I can do to keep the box always sized correctly?

1 Like

If you’ve forked chat, now is the time to update it. I see this issue happening to people with forked chat pretty often.

1 Like

This bug has already been somewhat reported although it was posted in #bulletin-board and wasn’t moved. Link to post:
Bug Report: Chat covering half of the screen in some games

You’ll need to update your fork of the chat scripts to the latest version due to a bug in old versions. If you’ve made changes and can’t re-apply them easily, you can update just the ChatBar script. If you’ve also edited the ChatBar script, you can also apply the fix manually.

Applying the fix manually

This is a diff file that you can apply to ChatBar.lua to apply the specific fix for this bug, if you have tools available for it.

> local TextService = game:GetService("TextService")
308a310,318
> local function measureSize(textObj)
>       return TextService:GetTextSize(
>               textObj.Text,
>               textObj.TextSize,
>               textObj.Font,
>               Vector2.new(textObj.AbsoluteSize.X, 10000)
>       )
> end
>
315,317d324
<       local lastPos = self.GuiObject.Size
<       self.GuiObject.Size = UDim2.new(1, 0, 0, 1000)
<
322,323c329,330
<               textSize = self.TextBox.textSize
<               bounds = self.TextBox.TextBounds.Y
---
>               textSize = self.TextBox.TextSize
>               bounds = measureSize(self.TextBox).Y
325,326c332,333
<               textSize = self.TextLabel.textSize
<               bounds = self.TextLabel.TextBounds.Y
---
>               textSize = self.TextLabel.TextSize
>               bounds = measureSize(self.TextLabel).Y
329,330d335
<       self.GuiObject.Size = lastPos
<
5 Likes

This should help: Bubble Chat Not Working - #24 by 0xabcdef1234

That’s an unrelated issue.

2 Likes

Sorry, how would I go about updating my fork? Not a bug i’ve encountered before so not something I’m familiar with.

What line do I replace this to?

Doesn’t seem like an Entire script to me.

If you have no need to fork the chat scripts anymore, you can just delete them from ChatService, which will cause the latest version to be used. Otherwise, you can play solo in an empty baseplate to get a copy of the latest version, and then integrate code from that into your own.

2 Likes

I figured it out my bad, had a bit of a brain fart. Thank you for the help

Just noticed this bug, but when I open an empty baseplate, I can’t chat

RobloxScreenShot20181223_184024743

Pressing / does nothing

Also a known issue which is being fixed:
https://gyazo.com/7b4a7b2932292255bbb75fb876f51277

As another note, make another thread if you can’t find information and if it has nothing to do with the original post.

1 Like