Set contentsize and Calculate anchor point.