Hi, I’ve been at this for hours on end, with no progress what so ever. How do I make dynamically resizing scrolling frame, if the ScrollingFrame.AbsoluteSize and UIGridLayout.AbsoluteContentSize output different numbers? Which do i use? Right now I’ve gone back to basics, and even the basics don’t seem to be working:
robloxapp-20200707-1227439.wmv (122.5 KB)
Most of the times AbsoluteContentSize is displaying the Y value as inf or nan…
I’ve tried what i could find on devforum, had mixed results unfortunately.
Current code is simply:
local gridLayout = plrItems.UIGridLayout gridLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function() local absSize = gridLayout.AbsoluteContentSize plrItems.CanvasSize = UDim2.new(0,0,absSize.Y,0) end)
And with aspect ratio constraint in the item & grid
What i’m trying to do is make the items stay the same size, and same 5 items per row, regardless of how many there are:
And make it as such that when resizing the window, they would resize, too, which sounds like scale, but maybe could be done offset only.
Where do i go from here?!