menu:Center() Center not working


For some reason, the Center() does not work.

For some reason, it puts it a little bit in the bottom right corner. (Center:() needs to be fixed)

Then I did

menu:SetPos ( ScrW()/2 - 255, ScrH()/2 -100 )

And it centers it X axis (Left to right) but for some reason, it has more space on the top of the Y axis (Up and down)
Any help?

menu:Center:() Photo

menu:SetPos Photo

function center(frame)
	frame:SetPos( (ScrW()/2) - (frame:GetWide()/2), (ScrH()/2) - (frame:GetTall()/2))

Or use


after setting it’s size.

Jesus, im stupid as hell! Thanks :stuck_out_tongue:

Thought it was actually broken, I don’t use it so…