AutomaticSizeX does not work properly with Scaled text inside of a BillboardGUI.
Reproduction Steps
- Create a BillboardGUI and parent to an instance in Workspace
- Set the size to {20, 0}, {5, 0} (scale only)
- Create a TextLabel with Size {0, 0}, {1, 0}, Automatic Size X and TextScaled.
- Move the camera towards and away from the BillboardGUI
Result
In this recording, I have created a Frame with a green background to show the extents of the BillboardGUI, and a TextLabel with a red background to show how the TextLabel expands beyond the size of the text.
Expected behavior
The TextLabel should not expand and should fit the size of the scaled text.
I would like to be able to create custom name tags with a background; however, because AutomaticSize doesn’t work, the background is much larger than it needs to be.
It also means I am unable to make price buttons for my tycoon game which include an ImageLabel icon next to the price of the upgrade.
How it should look:
How it looks when the user walks away from the button: