Hey everyone. I’m looking to create a TextBox that is parented to a ScrollingFrame that will increase in size as more text is added to it. As in, the ScrollingFrame will be able to scroll further and further as text is added. I’ve tried multiple solutions on the DevForum but haven’t been able to get this issue to work. Instead, once the text reaches the bottom of the TextBox, it just leaves an ellipsis. If this is something that isn’t actually possible, well then… rip.
I figured something like this would be possible using native properties in the ScrollingFrame and TextBox, without the use of scripts.
Here’s the text properties for the TextBox, and Scrolling for the ScrollingFrame:
It’s hard to tell what exactly are you trying to do. Additionally, sending the size properties (under the Data category on the properties window) and the entire image of the scrolling frame would help.
I just tried filling a ScrollingFrame with a UIListLayout with a TextBox as the last object and can replicate your behavior and fix the issue by simply setting the TextBox’s AutomaticSize to Y.
local text_box = script.Parent.TextBox
local function resize()
scroll_frame.CanvasSize = UDim2.fromOffset(0, 100000)
scroll_frame.CanvasSize = UDim2.fromOffset(0, text_box.TextBounds.Y)
end
text_box:GetPropertyChangedSignal("Text"):Connect(resize)
resize()