issue #5176, fix override problems

This commit is contained in:
andyque 2014-05-21 15:16:41 +08:00
parent 57d5e6f2d5
commit d5e68e4803
1 changed files with 3 additions and 2 deletions

View File

@ -666,12 +666,12 @@ bool Layout::init()
void Layout::addChild(Node *child)
{
Widget::addChild(child);
Layout::addChild(child, child->getZOrder(), child->getTag());
}
void Layout::addChild(Node * child, int zOrder)
{
Widget::addChild(child, zOrder);
Layout::addChild(child, zOrder, child->getZOrder());
}
void Layout::addChild(Node *child, int zOrder, int tag)
@ -690,6 +690,7 @@ void Layout::removeChild(Node *child, bool cleanup)
void Layout::removeAllChildren()
{
Widget::removeAllChildren();
_doLayoutDirty = true;
}
void Layout::removeAllChildrenWithCleanup(bool cleanup)