This version of Unity is unsupported.

GUIStyle.CalcHeight

Switch to Manual
public float CalcHeight(GUIContent content, float width);

Description

How tall this element will be when rendered with content and a specific width.