automatic node content size


Hello all.
I have not found anything in the architecture of nodes to allow the size is set automatically to the size of the recursive children.
I understand this has a cost, but it is necessary in some cases.
Cocos2dx Have some system to do it?