From c6f9f0e4061ef3c0c05b86d19ce2a82cb5b02cd7 Mon Sep 17 00:00:00 2001 From: lite3 Date: Tue, 22 Oct 2013 11:30:53 +0800 Subject: [PATCH] do not change anchor point of child. --- extensions/GUI/CCScrollView/CCScrollView.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/extensions/GUI/CCScrollView/CCScrollView.cpp b/extensions/GUI/CCScrollView/CCScrollView.cpp index 95b9c48c51..ee6a416310 100644 --- a/extensions/GUI/CCScrollView/CCScrollView.cpp +++ b/extensions/GUI/CCScrollView/CCScrollView.cpp @@ -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 {