I’m trying to scale a scrolling frame to be based on the content size of the list layout.
On PC, it scales correctly
However, on mobile (where the frame has 1.4 scale set) it has a huge chunk of extra
The AbsoluteContentSize property on the ListLayout is innaccurate, as it’s showing 500+, but the list is actually more about 350 in size.
function SettingsUIController:SetCanvasSize()
-- Set CanvasSize
local ContentSize = HUD.Settings.Container.Scroll.UIListLayout.AbsoluteContentSize.Y
local Padding = HUD.Settings.Container.Scroll.UIPadding.PaddingBottom.Offset
+ HUD.Settings.Container.Scroll.UIPadding.PaddingTop.Offset
local TotalSize = ContentSize + Padding
HUD.Settings.Container.Scroll.CanvasSize = UDim2.fromOffset(0, TotalSize)
end
Please note, using AutomaticCanvas size does not work in my instance, and it’s incredibly buggy