Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Correct ScrollingFrame Size?

Asked by 8 years ago

How do I get a more accurate CanvasSize from an ScrollingFrame? Note that all the buttons that get added the frame overtime are (0.9, 0, 0, 25).

Currently, my size code is this:

if #Frame2:GetChildren() ~= 0 then
    script.Parent.CanvasSize = UDim2.new(0, 0, 0, #Frame2:GetChildren()*30)
end
0
Dont forget to det XScale to .9 KoreanBBQ 301 — 8y
0
Is there a need if the Canvas is suppose to scroll down? peoplemove12 148 — 8y
0
Can you explain, or provide images, of how this isn't working? adark 5487 — 8y
0
I never said it wasn't working. I said It was inaccurate. The math "#Frame2:GetChildren()*30". peoplemove12 148 — 8y

Answer this question