I have a SurfaceGui with a TextBox and an identical TextLabel. TextScaled and TextWrapped are enabled. With multiline text, the TextBox shows the space before ‘to’ on the bottom line, while the TextLabel ignores it. TextBox.Multiline makes no difference.
I want to show the TextBox when the text is editable and the TextLabel otherwise, but the text can show up differently. It’s not a huge deal but it looks a little odd going from one to the other, the the bottom text on the TextBox isn’t centered
Thanks! I was able to reproduce and will file a bug on this for my team. We will get back to this post when we know what the problem is and are fixing it.
This is currently as designed since TextLabel/TextButton will ignore leading whitespace on new lines and TextBox does not. A workaround you could consider is using a line break to explicitly start a new line instead of a space, though the “/n” character would appear when the TextBox is editable.
I have logged this as a feature request to be able to toggle whether or not TextBox should ignore leading whitespace.