/// <summary>
/// Constrain the grid's content to be within the panel's bounds.
/// </summary>
public void ConstrainWithinPanel ()
{
if (mPanel != null)
{
mPanel.ConstrainTargetToBounds(transform, true);
UIScrollView sv = mPanel.GetComponent<UIScrollView>();
if (sv != null) sv.UpdateScrollbars(true);
}
}