I’m trying to use AutomaticSize to size a button based on its contents label size. But it’s completely all off and unsure what’s wrong?
The label (as above) is being auto sized correctly
But seemingly gets worse and worse from here
Bug.rbxl (67.8 KB)
Expected behavior
The content should be scaled correctly
1 Like
Focia19
(Focia19)
February 6, 2025, 8:39pm
#2
This is just an acknowledgment announcement!
We’ve filed a ticket into our internal database for this issue, and will come back as soon as we have updates!
Thanks for flagging!
1 Like
OverHash
(OverHash)
February 17, 2025, 9:28am
#3
Seeing a similar problem in an even simpler case of a TextButton not being sized correctly to match the text content:
Button in question has AutomaticSize = XY
with a UIPadding child. Updating the text to be Generate Room
and then back to Generate Rooms
fixes the issue – seems to just be the initial render.
Etheroit
(Etheroit)
February 17, 2025, 9:09pm
#4
Hmm…
Could this perhaps be related to this issue?
TextBox (AutomaticSize set to Y) within ScrollingFrame (AutomaticCanvasSize set to Y) does not function properly whenever TextWrapped is enabled - TextBox is not resized in Y direction after the text exceeds available space in Y. When TextWrapped is off, everything works just fine.
ReproUI.rbxm (6.6 KB)
Expected behavior
ScrollingFrame should be properly resized in Y in both cases (TextWrapped just wraps the text in X…)
Have you tried with having TextWrapped off?