mirror of https://github.com/axmolengine/axmol.git
Merge pull request #3988 from lite3/develop
closed #3060: The Node's anchor point was changed after being added to ScrollView.
This commit is contained in:
commit
d8683ef705
|
@ -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