Scaling help - Scrolling Frame

I’m having trouble scaling each element under this scrolling frame. The size appears to not be scaling right under the scrolling frame on a different device, which has a UI List Layout implemented. Any solutions or tips/tricks to help me solve this problem? I rarely ever work with scrolling frames so this is all unfamiliar to me.

Thanks!


2 Likes

To adjust the sizes for phone devices, I’d recommend using a local script with a quick “if statement” checking if the UI needs to be resized for touch devices.

Here is an example I’ve used before:

local v1 = UDim2.fromScale(0, 0.238)
local v2 = UDim2.fromScale(-0.133, 0.238)
if UserInputService.TouchEnabled then
	Frame.Size = UDim2.fromScale(0.179, 0.731)
	Frame.Position = UDim2.fromScale(-0.185, 0.5)
	v1 = UDim2.fromScale(-0.18, 0.082)
	v2 = UDim2.fromScale(0, 0.082)
	ListLayout.Padding = UDim.new(0, 4)
end

Let me know if you need help with the scripting part.

1 Like

Thank you. I will try this out. Is there also a way to fix it without the use of scripts?

1 Like