GUILayout.BeginScrollView in GUI.Box won't Scroll

I’m drawing a GUI.Box, then a GUILayout.BeginScrollView in the Box. It won’t scroll though. I assume it’s the Box that’s causing this.

public static void DrawConsole(Rect area)
	{
		GUI.Box(new Rect(area.x - 15, area.y - 15, area.width + 30, area.height + 30), "Server Console");
        GUILayout.BeginArea(area);
        viewPoint = GUILayout.BeginScrollView(viewPoint);
        GUILayout.BeginVertical();
		viewPoint = Vector2.one;
		foreach(string msg in messages)
		{
			GUILayout.Label(msg);
		}
		GUILayout.EndVertical();
		GUILayout.EndScrollView();
		GUILayout.EndArea();
    }

I’m not using a GUILayout.Box because I want to wrap the Box around the ScrollView. I’m not sure of a way to do that with GUILayout.Box.

The GUI.Box does nothing. Your problem is line 7:

    viewPoint = Vector2.one;

Just delete this line since it forces the scroll position to 1