{"action":"opened","number":502,"pull_request":{"url":"https://api.github.com/repos/TransitApp/SVProgressHUD/pulls/502","id":49203311,"html_url":"https://github.com/TransitApp/SVProgressHUD/pull/502","diff_url":"https://github.com/TransitApp/SVProgressHUD/pull/502.diff","patch_url":"https://github.com/TransitApp/SVProgressHUD/pull/502.patch","issue_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/issues/502","number":502,"state":"open","locked":false,"title":"Fix an off-center HUD when running in a Safari extension on the iPad","user":{"login":"mikenew12","id":522101,"avatar_url":"https://avatars.githubusercontent.com/u/522101?v=3","gravatar_id":"","url":"https://api.github.com/users/mikenew12","html_url":"https://github.com/mikenew12","followers_url":"https://api.github.com/users/mikenew12/followers","following_url":"https://api.github.com/users/mikenew12/following{/other_user}","gists_url":"https://api.github.com/users/mikenew12/gists{/gist_id}","starred_url":"https://api.github.com/users/mikenew12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikenew12/subscriptions","organizations_url":"https://api.github.com/users/mikenew12/orgs","repos_url":"https://api.github.com/users/mikenew12/repos","events_url":"https://api.github.com/users/mikenew12/events{/privacy}","received_events_url":"https://api.github.com/users/mikenew12/received_events","type":"User","site_admin":false},"body":"Previously, if `viewForExtension` is set, the the window frame will be used to find the center of the screen, which doesn't make sense if the HUD is being positioned in a view that's smaller than the screen. \r\n\r\nFor example, trying to show the HUD in a Safari extension on the iPad results in this (that's it down in the bottom right corner):\r\n\r\n![2015-10-29 14 25 48](https://cloud.githubusercontent.com/assets/522101/10832604/9ddf01be-7e49-11e5-9d35-aaf2bb1a61c2.png)\r\n\r\nI added a line to use the view's frame rather than the screen's frame if a custom view is present.","created_at":"2015-10-29T21:33:35Z","updated_at":"2015-10-29T21:33:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/pulls/502/commits","review_comments_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/pulls/502/comments","review_comment_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/issues/502/comments","statuses_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/statuses/a61a8ed9e02bf6235156075f1a6fec9e9e613e09","head":{"label":"mikenew12:master","ref":"master","sha":"a61a8ed9e02bf6235156075f1a6fec9e9e613e09","user":{"login":"mikenew12","id":522101,"avatar_url":"https://avatars.githubusercontent.com/u/522101?v=3","gravatar_id":"","url":"https://api.github.com/users/mikenew12","html_url":"https://github.com/mikenew12","followers_url":"https://api.github.com/users/mikenew12/followers","following_url":"https://api.github.com/users/mikenew12/following{/other_user}","gists_url":"https://api.github.com/users/mikenew12/gists{/gist_id}","starred_url":"https://api.github.com/users/mikenew12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikenew12/subscriptions","organizations_url":"https://api.github.com/users/mikenew12/orgs","repos_url":"https://api.github.com/users/mikenew12/repos","events_url":"https://api.github.com/users/mikenew12/events{/privacy}","received_events_url":"https://api.github.com/users/mikenew12/received_events","type":"User","site_admin":false},"repo":{"id":45211082,"name":"SVProgressHUD","full_name":"mikenew12/SVProgressHUD","owner":{"login":"mikenew12","id":522101,"avatar_url":"https://avatars.githubusercontent.com/u/522101?v=3","gravatar_id":"","url":"https://api.github.com/users/mikenew12","html_url":"https://github.com/mikenew12","followers_url":"https://api.github.com/users/mikenew12/followers","following_url":"https://api.github.com/users/mikenew12/following{/other_user}","gists_url":"https://api.github.com/users/mikenew12/gists{/gist_id}","starred_url":"https://api.github.com/users/mikenew12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikenew12/subscriptions","organizations_url":"https://api.github.com/users/mikenew12/orgs","repos_url":"https://api.github.com/users/mikenew12/repos","events_url":"https://api.github.com/users/mikenew12/events{/privacy}","received_events_url":"https://api.github.com/users/mikenew12/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikenew12/SVProgressHUD","description":"A clean and lightweight progress HUD for your iOS app.","fork":true,"url":"https://api.github.com/repos/mikenew12/SVProgressHUD","forks_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/forks","keys_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/teams","hooks_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/hooks","issue_events_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/issues/events{/number}","events_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/events","assignees_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/assignees{/user}","branches_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/branches{/branch}","tags_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/tags","blobs_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/statuses/{sha}","languages_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/languages","stargazers_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/stargazers","contributors_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/contributors","subscribers_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/subscribers","subscription_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/subscription","commits_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/contents/{+path}","compare_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/merges","archive_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/downloads","issues_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/issues{/number}","pulls_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/pulls{/number}","milestones_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/milestones{/number}","notifications_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/labels{/name}","releases_url":"https://api.github.com/repos/mikenew12/SVProgressHUD/releases{/id}","created_at":"2015-10-29T21:17:04Z","updated_at":"2015-10-29T21:17:05Z","pushed_at":"2015-10-29T21:19:27Z","git_url":"git://github.com/mikenew12/SVProgressHUD.git","ssh_url":"git@github.com:mikenew12/SVProgressHUD.git","clone_url":"https://github.com/mikenew12/SVProgressHUD.git","svn_url":"https://github.com/mikenew12/SVProgressHUD","homepage":"http://samvermette.com/199","size":2638,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"TransitApp:master","ref":"master","sha":"9dd505fd1a6bb9015199c00efa3e5a7df5f13128","user":{"login":"TransitApp","id":5727177,"avatar_url":"https://avatars.githubusercontent.com/u/5727177?v=3","gravatar_id":"","url":"https://api.github.com/users/TransitApp","html_url":"https://github.com/TransitApp","followers_url":"https://api.github.com/users/TransitApp/followers","following_url":"https://api.github.com/users/TransitApp/following{/other_user}","gists_url":"https://api.github.com/users/TransitApp/gists{/gist_id}","starred_url":"https://api.github.com/users/TransitApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TransitApp/subscriptions","organizations_url":"https://api.github.com/users/TransitApp/orgs","repos_url":"https://api.github.com/users/TransitApp/repos","events_url":"https://api.github.com/users/TransitApp/events{/privacy}","received_events_url":"https://api.github.com/users/TransitApp/received_events","type":"Organization","site_admin":false},"repo":{"id":1538210,"name":"SVProgressHUD","full_name":"TransitApp/SVProgressHUD","owner":{"login":"TransitApp","id":5727177,"avatar_url":"https://avatars.githubusercontent.com/u/5727177?v=3","gravatar_id":"","url":"https://api.github.com/users/TransitApp","html_url":"https://github.com/TransitApp","followers_url":"https://api.github.com/users/TransitApp/followers","following_url":"https://api.github.com/users/TransitApp/following{/other_user}","gists_url":"https://api.github.com/users/TransitApp/gists{/gist_id}","starred_url":"https://api.github.com/users/TransitApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TransitApp/subscriptions","organizations_url":"https://api.github.com/users/TransitApp/orgs","repos_url":"https://api.github.com/users/TransitApp/repos","events_url":"https://api.github.com/users/TransitApp/events{/privacy}","received_events_url":"https://api.github.com/users/TransitApp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TransitApp/SVProgressHUD","description":"A clean and lightweight progress HUD for your iOS app.","fork":false,"url":"https://api.github.com/repos/TransitApp/SVProgressHUD","forks_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/forks","keys_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/teams","hooks_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/hooks","issue_events_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/issues/events{/number}","events_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/events","assignees_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/assignees{/user}","branches_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/branches{/branch}","tags_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/tags","blobs_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/git/refs{/sha}","trees_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/statuses/{sha}","languages_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/languages","stargazers_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/stargazers","contributors_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/contributors","subscribers_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/subscribers","subscription_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/subscription","commits_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/commits{/sha}","git_commits_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/git/commits{/sha}","comments_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/comments{/number}","issue_comment_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/issues/comments{/number}","contents_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/contents/{+path}","compare_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/merges","archive_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/downloads","issues_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/issues{/number}","pulls_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/pulls{/number}","milestones_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/milestones{/number}","notifications_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/labels{/name}","releases_url":"https://api.github.com/repos/TransitApp/SVProgressHUD/releases{/id}","created_at":"2011-03-28T19:23:04Z","updated_at":"2015-10-29T21:19:12Z","pushed_at":"2015-10-24T21:16:18Z","git_url":"git://github.com/TransitApp/SVProgressHUD.git","ssh_url":"git@github.com:TransitApp/SVProgressHUD.git","clone_url":"https://github.com/TransitApp/SVProgressHUD.git","svn_url":"https://github.com/TransitApp/SVProgressHUD","homepage":"http://samvermette.com/199","size":2638,"stargazers_count":6278,"watchers_count":6278,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1391,"mirror_url":null,"open_issues_count":49,"forks":1391,"open_issues":49,"watchers":6278,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TransitApp/SVProgressHUD/pulls/502"},"html":{"href":"https://github.com/TransitApp/SVProgressHUD/pull/502"},"issue":{"href":"https://api.github.com/repos/TransitApp/SVProgressHUD/issues/502"},"comments":{"href":"https://api.github.com/repos/TransitApp/SVProgressHUD/issues/502/comments"},"review_comments":{"href":"https://api.github.com/repos/TransitApp/SVProgressHUD/pulls/502/comments"},"review_comment":{"href":"https://api.github.com/repos/TransitApp/SVProgressHUD/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TransitApp/SVProgressHUD/pulls/502/commits"},"statuses":{"href":"https://api.github.com/repos/TransitApp/SVProgressHUD/statuses/a61a8ed9e02bf6235156075f1a6fec9e9e613e09"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":0,"changed_files":1}}