mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-23 07:57:51 -05:00
fix AnchorLayout making targets not ignore anchor point for position
This commit is contained in:
parent
055f05ca55
commit
547c0474db
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ void AnchorLayout::apply(CCNode* on) {
|
||||||
case Anchor::BottomLeft: pos += ccp(0, 0); break;
|
case Anchor::BottomLeft: pos += ccp(0, 0); break;
|
||||||
case Anchor::Left: pos += ccp(0, size.height / 2); break;
|
case Anchor::Left: pos += ccp(0, size.height / 2); break;
|
||||||
}
|
}
|
||||||
node->ignoreAnchorPointForPosition(false);
|
// node->ignoreAnchorPointForPosition(false);
|
||||||
node->setPosition(pos);
|
node->setPosition(pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue