ScrollingFrame Automatic Canvas Size Error

I use ScrollingFrame to display the inventory, I want it to scroll all the way, and it works well when there are 1-2 objects, but if they don’t fit, then some item starts to disappear to the left, I don’t understand how to fix this.

Thanks

Can you set VerticalFlex to Fill?

Thats not working i calcualte canvas size by math. Muiltiply items size * count + gap * count and this math is working

Is that a script? If so you don’t need that all since scrollingframe will do the job for you i guess

Yes it should, but it calculates the canvas size incorrectly.

So are you using a script to calculate the canvas size?

yes now i calcualte a canvas size and all works


itemHolder.CanvasSize = UDim2.new(0, (itemPrefab.Size.Width.Offset * (#guiItemButtons+1)) + (itemHolder.UIListLayout.Padding.Offset * #guiItemButtons), 0, itemPrefab.Size.Height);
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.