{"action":"created","issue":{"url":"https://api.github.com/repos/QuickBlox/QMChatViewController-ios/issues/43","repository_url":"https://api.github.com/repos/QuickBlox/QMChatViewController-ios","labels_url":"https://api.github.com/repos/QuickBlox/QMChatViewController-ios/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/QuickBlox/QMChatViewController-ios/issues/43/comments","events_url":"https://api.github.com/repos/QuickBlox/QMChatViewController-ios/issues/43/events","html_url":"https://github.com/QuickBlox/QMChatViewController-ios/issues/43","id":144901500,"number":43,"title":"How to adjust the alignment of emojis after sending the text.","user":{"login":"ajay2c9","id":9112899,"avatar_url":"https://avatars.githubusercontent.com/u/9112899?v=3","gravatar_id":"","url":"https://api.github.com/users/ajay2c9","html_url":"https://github.com/ajay2c9","followers_url":"https://api.github.com/users/ajay2c9/followers","following_url":"https://api.github.com/users/ajay2c9/following{/other_user}","gists_url":"https://api.github.com/users/ajay2c9/gists{/gist_id}","starred_url":"https://api.github.com/users/ajay2c9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajay2c9/subscriptions","organizations_url":"https://api.github.com/users/ajay2c9/orgs","repos_url":"https://api.github.com/users/ajay2c9/repos","events_url":"https://api.github.com/users/ajay2c9/events{/privacy}","received_events_url":"https://api.github.com/users/ajay2c9/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/QuickBlox/QMChatViewController-ios/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"Raikerian","id":8850270,"avatar_url":"https://avatars.githubusercontent.com/u/8850270?v=3","gravatar_id":"","url":"https://api.github.com/users/Raikerian","html_url":"https://github.com/Raikerian","followers_url":"https://api.github.com/users/Raikerian/followers","following_url":"https://api.github.com/users/Raikerian/following{/other_user}","gists_url":"https://api.github.com/users/Raikerian/gists{/gist_id}","starred_url":"https://api.github.com/users/Raikerian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raikerian/subscriptions","organizations_url":"https://api.github.com/users/Raikerian/orgs","repos_url":"https://api.github.com/users/Raikerian/repos","events_url":"https://api.github.com/users/Raikerian/events{/privacy}","received_events_url":"https://api.github.com/users/Raikerian/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-03-31T13:29:00Z","updated_at":"2016-04-21T19:41:09Z","closed_at":null,"body":"Hi,\r\n When emojis are given after entering the text, space is displaying after emojis .how to adjust the alignment. this is occurring in the sample also . and container size is not adjusting when large text is give it comes on the other cell. below is the screenshot\r\n\r\n![screen shot 2016-03-31 at 6 51 02 pm](https://cloud.githubusercontent.com/assets/9112899/14177156/981a7d10-f772-11e5-8ddc-478d790a3482.png)\r\n "},"comment":{"url":"https://api.github.com/repos/QuickBlox/QMChatViewController-ios/issues/comments/213084126","html_url":"https://github.com/QuickBlox/QMChatViewController-ios/issues/43#issuecomment-213084126","issue_url":"https://api.github.com/repos/QuickBlox/QMChatViewController-ios/issues/43","id":213084126,"user":{"login":"sertony","id":3024361,"avatar_url":"https://avatars.githubusercontent.com/u/3024361?v=3","gravatar_id":"","url":"https://api.github.com/users/sertony","html_url":"https://github.com/sertony","followers_url":"https://api.github.com/users/sertony/followers","following_url":"https://api.github.com/users/sertony/following{/other_user}","gists_url":"https://api.github.com/users/sertony/gists{/gist_id}","starred_url":"https://api.github.com/users/sertony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sertony/subscriptions","organizations_url":"https://api.github.com/users/sertony/orgs","repos_url":"https://api.github.com/users/sertony/repos","events_url":"https://api.github.com/users/sertony/events{/privacy}","received_events_url":"https://api.github.com/users/sertony/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T19:41:09Z","updated_at":"2016-04-21T19:41:09Z","body":"maximumLineHeight = font.lineHeight in NSParagraphStyle attribute fixes this issue.\r\n\r\n```\r\nNSMutableParagraphStyle *paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];\r\n    paragraphStyle.maximumLineHeight = font.lineHeight;\r\n\r\nNSDictionary *attributes = @{NSParagraphStyleAttributeName: paragraphStyle, ...}\r\nNSMutableAttributedString *attrStr = [[NSMutableAttributedString alloc] initWithString:string attributes:attributes];\r\n```\r\n"}}