GUIStyle.CalcScreenSize

function CalcScreenSize (contentSize : Vector2) : Vector2

Description

Calculate the size of an element formatted with this style, and a given space to content.