function Window.UpdateWindowHeight(M)local l=(Gui.UIListLayout.AbsoluteContentSize.Y+Gui.UIPadding.PaddingTop.Offset)+Gui.UIPadding.PaddingBottom.Offset Gui.Size=UDim2.new(Gui.Size.X.Scale,Gui.Size.X.Offset,0,math.clamp(l,0,WINDOW_MAX_HEIGHT))Gui.CanvasPosition=Vector2.new(0,l)end

function Window:UpdateWindowHeight()
	-- ListContentSize.Y + Offset
	local windowHeight = Gui.UIListLayout.AbsoluteContentSize.Y
		+ Gui.UIPadding.PaddingTop.Offset
		+ Gui.UIPadding.PaddingBottom.Offset
	
	-- offsetY = clamp(windowHeight, 0, 300)
	Gui.Size = UDim2.new(Gui.Size.X.Scale, Gui.Size.X.Offset, 0, math.clamp(windowHeight, 0, WINDOW_MAX_HEIGHT))
	Gui.CanvasPosition = Vector2.new(0, windowHeight)
end
