protected override void SetPosition(Rect newPos)
{
base.SetPosition(newPos);
if (base.children.Length != 0)
{
Toolbar toolbar = (Toolbar) base.children[0];
base.children[0].position = new Rect(0f, 0f, newPos.width, toolbar.CalcHeight());
if (base.children.Length > 2)
{
base.children[1].position = new Rect(0f, toolbar.CalcHeight(), newPos.width, (newPos.height - toolbar.CalcHeight()) - base.children[2].position.height);
base.children[2].position = new Rect(0f, newPos.height - base.children[2].position.height, newPos.width, base.children[2].position.height);
}
}
}
}