code: public boolean isInside(CmsPositionBean child, int padding) {
  
          return ((getLeft() + padding) < child.getLeft()) // checking left border
              && ((getTop() + padding) < child.getTop()) // checking top border
              && (((getLeft() + getWidth()) - padding) > (child.getLeft() + child.getWidth())) // checking right border
              && (((getTop() + getHeight()) - padding) > (child.getTop() + child.getHeight())); // checking bottom border
      }
docs: Checks whether the given position is completely surrounded by this position.<p>
  
  @param child the child position
  @param padding the padding to use
  
  @return <code>true</code> if the child position is completely surrounded