Text(Button/Box/Label).TextBounds to be set upon parent

With the release of quantum gui, the TextBounds property updates immediately (well, as soon as you read it, if I’m not misunderstanding :slight_smile:). Running this in studio:

local sg = Instance.new("ScreenGui")
sg.Parent = game:GetService("CoreGui")
local label = Instance.new("TextLabel", sg)
label.Text = "Test"
print(label.TextBounds)
label.Text = "Test Test"
print(label.TextBounds)
wait(1)
print(label.TextBounds)

prints:

22, 12
47, 12 (x2)
2 Likes