fix the issue about measurement of content size in iOS7.1