ScrollingFrame.FitContents

Currently I am trying to make a ScrollingFrame fit everything inside a list. I was setting the CanvasSize equal to UIListLayout.AbsoluteContentSize however once I add a UIScale into the mix, this breaks my math and I would need to divide by the final scale (by searching for all UIScales in a frame)

It would be awesome if Roblox could automatically set the CanvasSize to fit the contents (including all layout parameters)

Edit: This API seems to be still underway!
https://devforum.roblox.com/t/guiobject-sizefromcontents-beta-closed/39819

10 Likes