function Window.UpdateWindowHeight(o)local a=LINE_HEIGHT for o,x in pairs(Gui:GetChildren())do if x:IsA("\071\117\105\079\098\106\101\099\116")then a=a+x.Size.Y.Offset end end Gui.CanvasSize=UDim2.new(Gui.CanvasSize.X.Scale,Gui.CanvasSize.X.Offset,0,a)Gui.Size=UDim2.new(Gui.Size.X.Scale,Gui.Size.X.Offset,0,a>WINDOW_MAX_HEIGHT and WINDOW_MAX_HEIGHT or a)Gui.CanvasPosition=Vector2.new(0,math.clamp(a-300,0,math.huge))end

function Window:UpdateWindowHeight()
	local windowHeight = LINE_HEIGHT

	for _, child in pairs(Gui:GetChildren()) do
		if child:IsA("GuiObject") then
			windowHeight = windowHeight + child.Size.Y.Offset
		end
	end

	Gui.CanvasSize = UDim2.new(Gui.CanvasSize.X.Scale, Gui.CanvasSize.X.Offset, 0, windowHeight)
	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, math.clamp(windowHeight - 300, 0, math.huge))
end
