mirror of https://github.com/axmolengine/axmol.git
issue #5176, fix override problems
This commit is contained in:
parent
57d5e6f2d5
commit
d5e68e4803
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue