@Override
  public void resizeChild(OGLGUIObject object, int index, int childTotal) {
    if (index == 0) {
      topLeft = null;
      topCenter = null;
      topRight = null;
      middleLeft = null;
      content = null;
      middleRight = null;
      bottomLeft = null;
      bottomCenter = null;
      bottomRight = null;
    }

    Object attr = object.getLayoutAttrib();

    if (attr == Attrib.TOP_LEFT) topLeft = object;
    else if (attr == Attrib.TOP_CENTER) topCenter = object;
    else if (attr == Attrib.TOP_RIGHT) topRight = object;
    else if (attr == Attrib.MIDDLE_LEFT) middleLeft = object;
    else if (attr == Attrib.CONTENT) content = object;
    else if (attr == Attrib.MIDDLE_RIGHT) middleRight = object;
    else if (attr == Attrib.BOTTOM_LEFT) bottomLeft = object;
    else if (attr == Attrib.BOTTOM_CENTER) bottomCenter = object;
    else if (attr == Attrib.BOTTOM_RIGHT) bottomRight = object;
    else if (attr == null && content == null) content = object;

    if (index + 1 == childTotal) orientChildren();
  }