{"action":"opened","number":296,"pull_request":{"url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/296","id":42829212,"html_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS/pull/296","diff_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS/pull/296.diff","patch_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS/pull/296.patch","issue_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues/296","number":296,"state":"open","locked":false,"title":"Prevent segmented control from looking horrible","user":{"login":"astralbodies","id":373903,"avatar_url":"https://avatars.githubusercontent.com/u/373903?v=3","gravatar_id":"","url":"https://api.github.com/users/astralbodies","html_url":"https://github.com/astralbodies","followers_url":"https://api.github.com/users/astralbodies/followers","following_url":"https://api.github.com/users/astralbodies/following{/other_user}","gists_url":"https://api.github.com/users/astralbodies/gists{/gist_id}","starred_url":"https://api.github.com/users/astralbodies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astralbodies/subscriptions","organizations_url":"https://api.github.com/users/astralbodies/orgs","repos_url":"https://api.github.com/users/astralbodies/repos","events_url":"https://api.github.com/users/astralbodies/events{/privacy}","received_events_url":"https://api.github.com/users/astralbodies/received_events","type":"User","site_admin":false},"body":"Closes #295 \r\n\r\nAdded constraints to the segmented control in Insights so that it can't be wider than the screen and also each segment is variably sized. This helps accommodate wider translations of the text. It's not a perfect solution but it does work and makes the UI look less ugly.\r\n\r\nNeeds Review: @bummytime","created_at":"2015-08-19T15:36:10Z","updated_at":"2015-08-19T15:36:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/296/commits","review_comments_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/296/comments","review_comment_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues/296/comments","statuses_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/statuses/94d65f122cc41a9fba154143c2273b0278b5aec8","head":{"label":"wordpress-mobile:issue/295-segmented-control","ref":"issue/295-segmented-control","sha":"94d65f122cc41a9fba154143c2273b0278b5aec8","user":{"login":"wordpress-mobile","id":1306301,"avatar_url":"https://avatars.githubusercontent.com/u/1306301?v=3","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"repo":{"id":19698391,"name":"WordPressCom-Stats-iOS","full_name":"wordpress-mobile/WordPressCom-Stats-iOS","owner":{"login":"wordpress-mobile","id":1306301,"avatar_url":"https://avatars.githubusercontent.com/u/1306301?v=3","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS","description":"Reusable component for displaying WordPress.com site stats in an iOS application","fork":false,"url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS","forks_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/forks","keys_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/teams","hooks_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/hooks","issue_events_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/events","assignees_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/tags","blobs_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/languages","stargazers_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/stargazers","contributors_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/contributors","subscribers_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/subscribers","subscription_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/subscription","commits_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/merges","archive_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/downloads","issues_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/labels{/name}","releases_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/releases{/id}","created_at":"2014-05-12T12:48:07Z","updated_at":"2015-05-06T23:00:07Z","pushed_at":"2015-08-19T15:26:59Z","git_url":"git://github.com/wordpress-mobile/WordPressCom-Stats-iOS.git","ssh_url":"git@github.com:wordpress-mobile/WordPressCom-Stats-iOS.git","clone_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS.git","svn_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS","homepage":null,"size":3595,"stargazers_count":7,"watchers_count":7,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":32,"forks":5,"open_issues":32,"watchers":7,"default_branch":"develop"}},"base":{"label":"wordpress-mobile:develop","ref":"develop","sha":"6e7cde179999133fb8f4c33aa88b529a3b11aea8","user":{"login":"wordpress-mobile","id":1306301,"avatar_url":"https://avatars.githubusercontent.com/u/1306301?v=3","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"repo":{"id":19698391,"name":"WordPressCom-Stats-iOS","full_name":"wordpress-mobile/WordPressCom-Stats-iOS","owner":{"login":"wordpress-mobile","id":1306301,"avatar_url":"https://avatars.githubusercontent.com/u/1306301?v=3","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS","description":"Reusable component for displaying WordPress.com site stats in an iOS application","fork":false,"url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS","forks_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/forks","keys_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/teams","hooks_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/hooks","issue_events_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/events","assignees_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/tags","blobs_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/languages","stargazers_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/stargazers","contributors_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/contributors","subscribers_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/subscribers","subscription_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/subscription","commits_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/merges","archive_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/downloads","issues_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/labels{/name}","releases_url":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/releases{/id}","created_at":"2014-05-12T12:48:07Z","updated_at":"2015-05-06T23:00:07Z","pushed_at":"2015-08-19T15:26:59Z","git_url":"git://github.com/wordpress-mobile/WordPressCom-Stats-iOS.git","ssh_url":"git@github.com:wordpress-mobile/WordPressCom-Stats-iOS.git","clone_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS.git","svn_url":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS","homepage":null,"size":3595,"stargazers_count":7,"watchers_count":7,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":32,"forks":5,"open_issues":32,"watchers":7,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/296"},"html":{"href":"https://github.com/wordpress-mobile/WordPressCom-Stats-iOS/pull/296"},"issue":{"href":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues/296"},"comments":{"href":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/issues/296/comments"},"review_comments":{"href":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/296/comments"},"review_comment":{"href":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/pulls/296/commits"},"statuses":{"href":"https://api.github.com/repos/wordpress-mobile/WordPressCom-Stats-iOS/statuses/94d65f122cc41a9fba154143c2273b0278b5aec8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":27,"deletions":26,"changed_files":1}}