mirror of https://github.com/axmolengine/axmol.git
do not change anchor point of child.
This commit is contained in:
parent
6a10910ff3
commit
c6f9f0e406
|
@ -469,8 +469,6 @@ void ScrollView::updateInset()
|
|||
*/
|
||||
void ScrollView::addChild(Node * child, int zOrder, int tag)
|
||||
{
|
||||
child->ignoreAnchorPointForPosition(false);
|
||||
child->setAnchorPoint(Point(0.0f, 0.0f));
|
||||
if (_container != child) {
|
||||
_container->addChild(child, zOrder, tag);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue