internal static void Layout()
{
if (current.topLevel.windowID == -1)
{
current.topLevel.CalcWidth();
current.topLevel.SetHorizontal(0f, Mathf.Min(((float) Screen.width) / GUIUtility.pixelsPerPoint, current.topLevel.maxWidth));
current.topLevel.CalcHeight();
current.topLevel.SetVertical(0f, Mathf.Min(((float) Screen.height) / GUIUtility.pixelsPerPoint, current.topLevel.maxHeight));
LayoutFreeGroup(current.windows);
}
else
{
LayoutSingleGroup(current.topLevel);
LayoutFreeGroup(current.windows);
}
}