How to make gui element as big as canvas of parented scrolling frame?

Hi,
I need to know, how to make gui element (text label) as big as canvas of parented scrolling frame, i tried size = 1,1, but it did not work on y (it was too big). Can you help me?

I don’t understand what you’re asking for. Are you trying to make the size of the gui the same size as the scrollingframe’s AbsoluteSize? If so, you can do:

local size = frame.AbsoluteSize / frame.AbsoluteSize * Vector2.new(frame.CanvasSize.X.Scale, frame.CanvasSize.Y.Scale) 

gui.Size = UDim2.new(size.X, 0, size.Y,  0)

I found the mistake myself, idk why, but when i set canvas size in scale, i cant scroll it to botton, so i think that it is a bug

It’s probably because of how you positioned the button, check its position