Increases the dimensions to completely surround the child.<p>

@param child the child position info
@param padding the padding to apply
332708
public void ensureSurrounds(CmsPositionBean child, int padding) {

        // increase the size of the outer rectangle
        if ((getLeft() + padding) > child.getLeft()) {
            int diff = getLeft() - child.getLeft();
            // ensure padding
            diff += padding;
            setLeft(getLeft() - diff);
            setWidth(getWidth() + diff);
        }
        if ((getTop() + padding) > child.getTop()) {
            int diff = getTop() - child.getTop();
            diff += padding;
            setTop(getTop() - diff);
            setHeight(getHeight() + diff);
        }
        if ((getLeft() + getWidth()) < (child.getLeft() + child.getWidth() + padding)) {
            int diff = (child.getLeft() + child.getWidth()) - (getLeft() + getWidth());
            diff += padding;
            setWidth(getWidth() + diff);
        }
        if ((getTop() + getHeight()) < (child.getTop() + child.getHeight() + padding)) {
            int diff = (child.getTop() + child.getHeight()) - (getTop() + getHeight());
            diff += padding;
            setHeight(getHeight() + diff);
        }
    }
567592
public void addChild(TreeElement child)
            throws IllegalArgumentException
    {

        TreeElement theChild = child;
        theChild.setParent(this);
        if (getName() == null) {
            setName("0");
        }
        if (_children == null) {
            _children = new ArrayList();
        }
        //int n = _children.size();
        //if (n > 0) {
        //    TreeElement node = (TreeElement) _children.get(n - 1);
        //    node.setLast(false);
        //}
        //theChild.setLast(true);
        _children.add(child);
        int n = _children.size();
        theChild.updateName(this, n - 1);
    }
1194460
public void removeChild(Xml child)
    {
        Check.notNull(child);

        root.removeChild(child.getElement());
    }
681235
public void removeChild(String child)
    {
        final Xml node = getChild(child);
        root.removeChild(node.getElement());
    }
1009938
public void addChildScope(Scope child) {
        if (childScopes == null) {
            childScopes = new ArrayList<Scope>();
        }
        childScopes.add(child);
        child.setParentScope(this);
    }
902609
protected void moveChild(BaseUIComponent child, BaseUIComponent before) {
        child.getParent().addChild(child, before);
    }
1335225
function addChild(child, node) {
    var children = node.children;
    if (child.parentNode === node) {
        return;
    }

    children.push(child);
    child.parentNode = node;
}
134694
public void insertChild(CmsTreeItem item, int position) {

        m_children.insert(item, position);
        adopt(item);
    }
871788
public synchronized boolean addChild(String child) {
        if (children == null) {
            // let's be conservative on the typical number of children
            children = new HashSet<String>(8);
        }
        return children.add(child);
    }
491873
public void setPadding(Rect padding) {
        if (padding == null) {
            mState.mPadding = null;
        } else {
            if (mState.mPadding == null) {
                mState.mPadding = new Rect();
            }
            mState.mPadding.set(padding);
        }
        invalidateSelf();
    }
920795
public void remove(JDesktopPaneLayout child)
    {
        if (child.parent != this)
        {
            throw new IllegalArgumentException(
                "Layout is not a child of this layout");
        }
        container.remove(child.container);
    }
646130
public Tree<T> addLeaf( T child )
    {
        Tree<T> leaf = new Tree<T>( child );
        leaf.parent = this;
        children.add( leaf );
        return leaf;
    }
716021
@Override
    protected void afterMoveChild(ElementBase child, ElementBase before) {
        moveChild(((ElementUI) child).getOuterComponent(), ((ElementUI) before).getOuterComponent());
        updateMasks();
    }
439127
public function addChild($child)
    {
        $children = $this->getChildren();
        array_push($children, $child);
        $this->setChildren($children);
    }
686432
public void setChildContentEligibility(com.google.api.ads.admanager.axis.v201902.ChildContentEligibility childContentEligibility) {
        this.childContentEligibility = childContentEligibility;
    }
885342
public void removeChild(final Node child) {
        if (child instanceof Level) {
            levels.remove(child);
            nodes.remove(child);
            child.setParent(null);
        } else if (child instanceof SpecTopic) {
            removeSpecTopic((SpecTopic) child);
        } else if (child instanceof CommonContent) {
            commonContents.remove(child);
            nodes.remove(child);
            child.setParent(null);
        } else {
            nodes.remove(child);
            child.setParent(null);
        }
    }
516632
public static void addChildResult(HierarchicalResult parent, Result child) {
    parent.getHierarchy().add(parent, child);
  }