Skip to content

Commit 7269d94

Browse files
author
James Chen
committed
Merge pull request cocos2d#3988 from lite3/develop
closed cocos2d#3060: The Node's anchor point was changed after being added to ScrollView.
2 parents 44e6e80 + 10543f5 commit 7269d94

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

extensions/GUI/CCScrollView/CCScrollView.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,6 @@ void ScrollView::updateInset()
469469
*/
470470
void ScrollView::addChild(Node * child, int zOrder, int tag)
471471
{
472-
child->ignoreAnchorPointForPosition(false);
473-
child->setAnchorPoint(Point(0.0f, 0.0f));
474472
if (_container != child) {
475473
_container->addChild(child, zOrder, tag);
476474
} else {

0 commit comments

Comments
 (0)