{"action":"created","issue":{"url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel/issues/405","labels_url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel/issues/405/labels{/name}","comments_url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel/issues/405/comments","events_url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel/issues/405/events","html_url":"https://github.com/TTTAttributedLabel/TTTAttributedLabel/issues/405","id":35706359,"number":405,"title":"issues with Emojis in labels","user":{"login":"DimaVartanian","id":921505,"avatar_url":"https://avatars.githubusercontent.com/u/921505?v=3","gravatar_id":"","url":"https://api.github.com/users/DimaVartanian","html_url":"https://github.com/DimaVartanian","followers_url":"https://api.github.com/users/DimaVartanian/followers","following_url":"https://api.github.com/users/DimaVartanian/following{/other_user}","gists_url":"https://api.github.com/users/DimaVartanian/gists{/gist_id}","starred_url":"https://api.github.com/users/DimaVartanian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DimaVartanian/subscriptions","organizations_url":"https://api.github.com/users/DimaVartanian/orgs","repos_url":"https://api.github.com/users/DimaVartanian/repos","events_url":"https://api.github.com/users/DimaVartanian/events{/privacy}","received_events_url":"https://api.github.com/users/DimaVartanian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-06-13T20:56:54Z","updated_at":"2015-04-07T06:08:52Z","closed_at":null,"body":"I've tried to distill this down as much as I could and have a pretty basic reproducible case.\r\n\r\nI have a completely empty view with this code, using TTTAttributedLabel 1.10.1\r\n\r\n    TTTAttributedLabel *attributedLabel = [[TTTAttributedLabel alloc] initWithFrame:CGRectMake(100, 100, 200, 0)];\r\n    attributedLabel.delegate = self;\r\n    attributedLabel.font = [UIFont systemFontOfSize:15];\r\n    attributedLabel.text = @\"Tap here! \\U0001F604 \\U0001F610\";\r\n    attributedLabel.linkAttributes = @{NSFontAttributeName : [UIFont boldSystemFontOfSize:15]};\r\n    \r\n    [attributedLabel addLinkToURL:[NSURL URLWithString:@\"DOESNOTMATTER\"] withRange:[attributedLabel.text rangeOfString:@\"Tap here! \\U0001F604 \\U0001F610\"]];;\r\n    CGRect frame = attributedLabel.frame;\r\n    \r\n    frame.size.height = [attributedLabel sizeThatFits:attributedLabel.frame.size].height;\r\n    \r\n    // same result using this\r\n    // frame.size.height = [TTTAttributedLabel sizeThatFitsAttributedString:attributedLabel.attributedText withConstraints:attributedLabel.frame.size limitedToNumberOfLines:0].height;\r\n    attributedLabel.frame = frame;\r\n    [self.view addSubview:attributedLabel];\r\n\r\nThe 2 problems I'm seeing are:\r\n\r\n1. Top of emojis are cut off at resting state\r\n2. When links are selected, the whole label shifts down a bit (at which point, the bottom of the emojis are cut off)\r\n\r\nGIF here:\r\n![tttattributedlabelissue](https://cloud.githubusercontent.com/assets/921505/3275566/0fea6166-f33d-11e3-9eed-7f93a94c5802.gif)\r\n\r\nI get the same result using `sizeToFit`, `sizeThatFits:` and the `TTTAttributedLabel` method `sizeThatFitsAttributedString:withConstraints:limitedToNumberOfLines:`\r\n\r\nAny ideas?\r\n"},"comment":{"url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel/issues/comments/90383100","html_url":"https://github.com/TTTAttributedLabel/TTTAttributedLabel/issues/405#issuecomment-90383100","issue_url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel/issues/405","id":90383100,"user":{"login":"ytn3rd","id":904737,"avatar_url":"https://avatars.githubusercontent.com/u/904737?v=3","gravatar_id":"","url":"https://api.github.com/users/ytn3rd","html_url":"https://github.com/ytn3rd","followers_url":"https://api.github.com/users/ytn3rd/followers","following_url":"https://api.github.com/users/ytn3rd/following{/other_user}","gists_url":"https://api.github.com/users/ytn3rd/gists{/gist_id}","starred_url":"https://api.github.com/users/ytn3rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytn3rd/subscriptions","organizations_url":"https://api.github.com/users/ytn3rd/orgs","repos_url":"https://api.github.com/users/ytn3rd/repos","events_url":"https://api.github.com/users/ytn3rd/events{/privacy}","received_events_url":"https://api.github.com/users/ytn3rd/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T06:08:52Z","updated_at":"2015-04-07T06:08:52Z","body":"Had wondered if this was desired effect. This is what messages does in iOS8.2 so it absolutely isn't the desired effect. Tested with both using line breaks and not using line breaks and does the same. Don't currently have an app using latest TTTAttributedLabel so can't play around with it at the moment.\r\n![fullsizerender](https://cloud.githubusercontent.com/assets/904737/7017804/300eaf9a-dd40-11e4-9377-9d3523352e22.jpg)"}}