module.SetCanvasSize=function(j)local f,a,m=getSizes()local X=j.UIGridLayout local x=j.AbsoluteSize local U=f*x U=UDim2.new(0,U.X,0,U.Y)local g=a*x g=UDim2.new(0,g.X,0,g.Y)X.CellPadding=U X.CellSize=g local J=j:GetChildren()local l=j.AbsoluteSize.Y local I=X.CellSize.Y.Offset local G=X.CellPadding.Y.Offset X.FillDirectionMaxCells=m local W=math.ceil((#J-1)/X.FillDirectionMaxCells)local F=W*I+(W-1)*G j.CanvasSize=UDim2.new(0,0,0,F+5)end function module.Int(j)((game:GetService("\087\111\114\107\115\112\097\099\101")).CurrentCamera:GetPropertyChangedSignal("\086\105\101\119\112\111\114\116\083\105\122\101")):Connect(function()delay(.5,function()module.SetCanvasSize(skillShopUI.Skills)end)end)end return module
-- Set Pet Canvas Size --
module.SetCanvasSize = function(ScrollingFrame)
	local PADDING, SIZE, MaxCells = getSizes()
	local UIGridLayout = ScrollingFrame.UIGridLayout
	local AbsoluteSize = ScrollingFrame.AbsoluteSize

	local NewPadding = PADDING * AbsoluteSize
	NewPadding = UDim2.new(0, NewPadding.X, 0, NewPadding.Y)
	local NewSize = SIZE * AbsoluteSize
	NewSize = UDim2.new(0, NewSize.X, 0, NewSize.Y)

	UIGridLayout.CellPadding = NewPadding
	UIGridLayout.CellSize = NewSize

	local items = ScrollingFrame:GetChildren()
	local frameSizeY = ScrollingFrame.AbsoluteSize.Y
	local ySize = UIGridLayout.CellSize.Y.Offset
	local yPadding = UIGridLayout.CellPadding.Y.Offset
	UIGridLayout.FillDirectionMaxCells = MaxCells
	local rows = math.ceil((#items - 1) / UIGridLayout.FillDirectionMaxCells)
	local pixels = rows * ySize + (rows - 1) * yPadding
	ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, (pixels + 5))
end

function module:Int()
	game:GetService("Workspace").CurrentCamera:GetPropertyChangedSignal("ViewportSize"):Connect(function()
		delay(0.5, function()
			module.SetCanvasSize(skillShopUI.Skills)
		end)
	end)
end

return module
