--- Recalculate the window height

function Window:UpdateWindowHeight()
	local windowHeight = Gui.AbsoluteCanvasSize.Y

	Gui.Size = UDim2.new(
		Gui.Size.X.Scale,
		Gui.Size.X.Offset,
		0,
		windowHeight > WINDOW_MAX_HEIGHT and WINDOW_MAX_HEIGHT or windowHeight
	)

	Gui.CanvasPosition = Vector2.new(0, windowHeight)
end
