internal static float LayoutFromInspector(float width)
{
if ((current.topLevel != null) && (current.topLevel.windowID == -1))
{
current.topLevel.CalcWidth();
current.topLevel.SetHorizontal(0f, width);
current.topLevel.CalcHeight();
current.topLevel.SetVertical(0f, Mathf.Min(((float) Screen.height) / GUIUtility.pixelsPerPoint, current.topLevel.maxHeight));
float minHeight = current.topLevel.minHeight;
LayoutFreeGroup(current.windows);
return minHeight;
}
if (current.topLevel != null)
{
LayoutSingleGroup(current.topLevel);
}
return 0f;
}