Hello so recently I’ve tried to learn about ScrollingFrames and how i could use one in my game.
I am very new to Lua and Coding in Roblox Studio in general.
I’ve created an item list and want that you are able to scroll through all the items. Sadly the Scrolling bar stops at a specific point and the rest of the items won’t be displayed.
I’ve had the same issue. It’s because of the fact you’re using scale. Unfortunately you can only offset with a UIGridLayout. It won’t scale the canvas size properly for some stupid reason.
local ScrollingFrame = ... -- you know
local UIGridLayoit = ScrollingFrame.UIGridLayout
local ScaleInOffset = UDim2.fromOffset(UIGridLayout.CellSize.Scale.X / ScrollingGui.AbsoluteSize.X, UIGridLayout.CellSize.Scale.Y / ScrollingGui.AbsoluteSize.Y)
Can you show me the properties of the ScrollingFrame and the UIGridLayout?
Also, are you using scale or offset originally in the UIGridLayout CellSize?
Can you upload the place file please? I can’t see the reason it isn’t working right now it’d be easier to try and fix it live. There is always the option of removing the script entirely and setting the CanvasSize of the ScrollingFrame higher but then there would be a limit so if items are added over time then it may fill up again.
Not much more I can say at this point then, don’t want to go too deep for something that probably has a simple answer. If you can’t get the script working the answer to the original question is setting the Y offset of the CanvasSize to the Y AbsoluteContentSize of the UIGridLayout. AbsoluteContentSize will give you the actual size it takes up. Good luck though.