Modify snapChildToCenter to work on both centers, not center/anchor