This item is not replicated across Roblox’s server/client boundary.
This property can only be read from. Attempting to write to it will cause an error.
The AbsoluteContentSize property of a
UIGridStyleLayout shows how much space the elements of the grid are taking up, including any padding created by the grid. This property is particularly useful to size containers of grids such as
Frames and Frame to make sure they aren’t any larger than the grid itself.
It updates as soon as it’s read. It won’t fire a changed event immediately after the UI has changed, but if the value is read it will be up to date. A
Instance/Changed event should fire on the next render step.
Tracking AbsoluteContentSize Changes
In this example a UIGridLayout is created inside of a
ScrollingFrame. To make sure the
ScrollingFrame/CanvasSize is exactly the size it needs to be to contain the grid, a function is connected to the grids
Instance/GetPropertyChangedSignal to listen for when the AbsoluteContentSize of the grid changes, and sets the canvas size accordingly.