{"action":"created","issue":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/issues/6308","repository_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/issues/6308/labels{/name}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/issues/6308/comments","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/issues/6308/events","html_url":"https://github.com/wordpress-mobile/WordPress-iOS/pull/6308","id":194373847,"number":6308,"title":"Rich Text: Do not set frame if it has an infinite origin.","user":{"login":"aerych","id":1435271,"avatar_url":"https://avatars.githubusercontent.com/u/1435271?v=3","gravatar_id":"","url":"https://api.github.com/users/aerych","html_url":"https://github.com/aerych","followers_url":"https://api.github.com/users/aerych/followers","following_url":"https://api.github.com/users/aerych/following{/other_user}","gists_url":"https://api.github.com/users/aerych/gists{/gist_id}","starred_url":"https://api.github.com/users/aerych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aerych/subscriptions","organizations_url":"https://api.github.com/users/aerych/orgs","repos_url":"https://api.github.com/users/aerych/repos","events_url":"https://api.github.com/users/aerych/events{/privacy}","received_events_url":"https://api.github.com/users/aerych/received_events","type":"User","site_admin":false},"labels":[{"id":88221256,"url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/labels/Reader","name":"Reader","color":"006b75","default":false}],"state":"open","locked":false,"assignee":{"login":"frosty","id":4780,"avatar_url":"https://avatars.githubusercontent.com/u/4780?v=3","gravatar_id":"","url":"https://api.github.com/users/frosty","html_url":"https://github.com/frosty","followers_url":"https://api.github.com/users/frosty/followers","following_url":"https://api.github.com/users/frosty/following{/other_user}","gists_url":"https://api.github.com/users/frosty/gists{/gist_id}","starred_url":"https://api.github.com/users/frosty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frosty/subscriptions","organizations_url":"https://api.github.com/users/frosty/orgs","repos_url":"https://api.github.com/users/frosty/repos","events_url":"https://api.github.com/users/frosty/events{/privacy}","received_events_url":"https://api.github.com/users/frosty/received_events","type":"User","site_admin":false},"assignees":[{"login":"frosty","id":4780,"avatar_url":"https://avatars.githubusercontent.com/u/4780?v=3","gravatar_id":"","url":"https://api.github.com/users/frosty","html_url":"https://github.com/frosty","followers_url":"https://api.github.com/users/frosty/followers","following_url":"https://api.github.com/users/frosty/following{/other_user}","gists_url":"https://api.github.com/users/frosty/gists{/gist_id}","starred_url":"https://api.github.com/users/frosty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frosty/subscriptions","organizations_url":"https://api.github.com/users/frosty/orgs","repos_url":"https://api.github.com/users/frosty/repos","events_url":"https://api.github.com/users/frosty/events{/privacy}","received_events_url":"https://api.github.com/users/frosty/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/milestones/64","html_url":"https://github.com/wordpress-mobile/WordPress-iOS/milestone/64","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/milestones/64/labels","id":2090826,"number":64,"title":"6.8","description":null,"creator":{"login":"kwonye","id":1158819,"avatar_url":"https://avatars.githubusercontent.com/u/1158819?v=3","gravatar_id":"","url":"https://api.github.com/users/kwonye","html_url":"https://github.com/kwonye","followers_url":"https://api.github.com/users/kwonye/followers","following_url":"https://api.github.com/users/kwonye/following{/other_user}","gists_url":"https://api.github.com/users/kwonye/gists{/gist_id}","starred_url":"https://api.github.com/users/kwonye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwonye/subscriptions","organizations_url":"https://api.github.com/users/kwonye/orgs","repos_url":"https://api.github.com/users/kwonye/repos","events_url":"https://api.github.com/users/kwonye/events{/privacy}","received_events_url":"https://api.github.com/users/kwonye/received_events","type":"User","site_admin":false},"open_issues":42,"closed_issues":64,"state":"open","created_at":"2016-10-24T23:03:58Z","updated_at":"2016-12-12T20:41:14Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-12-08T16:00:46Z","updated_at":"2016-12-12T20:41:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/pulls/6308","html_url":"https://github.com/wordpress-mobile/WordPress-iOS/pull/6308","diff_url":"https://github.com/wordpress-mobile/WordPress-iOS/pull/6308.diff","patch_url":"https://github.com/wordpress-mobile/WordPress-iOS/pull/6308.patch"},"body":"Fixes #6276 \r\nWhen a 180 degree rotation occurs, `frameForTextInRange` will return a rect with an infinite origin, and cgsize zero.  This pr checks for such a frame and avoids setting it on attachment views.\r\n\r\nTo test:\r\nSet a breakpoint on the return so its easier to test the fix.\r\nRepeat the steps outlined in the issue and confirm that images do not vanish when a 180 degree rotation occurs.\r\n\r\nNeeds review: @frosty \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/issues/comments/266546556","html_url":"https://github.com/wordpress-mobile/WordPress-iOS/pull/6308#issuecomment-266546556","issue_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/issues/6308","id":266546556,"user":{"login":"kurzee","id":1873422,"avatar_url":"https://avatars.githubusercontent.com/u/1873422?v=3","gravatar_id":"","url":"https://api.github.com/users/kurzee","html_url":"https://github.com/kurzee","followers_url":"https://api.github.com/users/kurzee/followers","following_url":"https://api.github.com/users/kurzee/following{/other_user}","gists_url":"https://api.github.com/users/kurzee/gists{/gist_id}","starred_url":"https://api.github.com/users/kurzee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurzee/subscriptions","organizations_url":"https://api.github.com/users/kurzee/orgs","repos_url":"https://api.github.com/users/kurzee/repos","events_url":"https://api.github.com/users/kurzee/events{/privacy}","received_events_url":"https://api.github.com/users/kurzee/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T20:41:49Z","updated_at":"2016-12-12T20:41:49Z","body":"@aerych nice! All good, :shipit:"}}
{"actor":{"display_login":"kurzee"}}