Fix layout for iOS7

On iOS7 contentSize will not updating if last line contain only '\n' character.