September 20, 2022
Adaptive mode for text control size. The fixed mode is determined by the size of the control itself. When adapting to the width (height), the width (height) size is determined by the size of the control, the height (width) size is determined by the text content, and the adaptive width and height are completely determined by the text content.
-- create layout window local APIRootWindow = UI:CreateGUIWindow("API") --Set the window to the root node of the UI APIRootWindow.Parent = UI.Root --Get the Text control for testing according to the name local text = APIRootWindow.APIText --Set the adaptive width and height mode of the text control to be completely determined by the text content text.AutoFrameSize = Enum.AutoFrameSize.SelfAdaptive