Scrolling Frame Canvas Size Keeping Same Size of Elements Inside of It When Changed

What I’m trying to create is a list using UIListLayout in a scrolling frame of all the building items a player has in their inventory. What I’m concerned with, is keeping the size of the item displays the same even when the canvas size is increased/decreased. I’ve tried deriving a formula for a scale factor, but I have not been able to. I also need to figure out how much canvas size one GUI element should add (every single GUI element is the same size as seen in the image)


How would I derive these numbers based on what’s available in the properties?

I’m a bit confused about your description, but UIAspectRatioConstraints might help?

To convert offset to scale you might be able to use Offset.X/AbsoluteSize.X (+ alternates with the Y axis & position)

Change the Canvas Size to 0 on the y axis and enable AutomaticCanvasSize for the y axis, that should work and automatically size the canvas to the correct size on the y axis.

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