{"action":"created","comment":{"url":"https://api.github.com/repos/angular/material2/pulls/comments/90371504","pull_request_review_id":10890756,"id":90371504,"diff_hunk":"@@ -375,4 +425,169 @@ export class MdSelect implements AfterContentInit, ControlValueAccessor, OnDestr\n     }, undefined);\n   }\n \n+  /** Calculates the scroll position and x- and y-offsets of the overlay panel. */\n+  private _calculateOverlayPosition(): void {\n+    this._offsetX = this._isRtl() ? SELECT_PANEL_PADDING_X : -SELECT_PANEL_PADDING_X;\n+\n+    const panelHeight = this.options.length <= SELECT_MAX_OPTIONS_DISPLAYED","path":"src/lib/select/select.ts","position":158,"original_position":158,"commit_id":"503a168c9d1b9ff2769796a6b3e224a452498c7e","original_commit_id":"503a168c9d1b9ff2769796a6b3e224a452498c7e","user":{"login":"jelbourn","id":838736,"avatar_url":"https://avatars.githubusercontent.com/u/838736?v=3","gravatar_id":"","url":"https://api.github.com/users/jelbourn","html_url":"https://github.com/jelbourn","followers_url":"https://api.github.com/users/jelbourn/followers","following_url":"https://api.github.com/users/jelbourn/following{/other_user}","gists_url":"https://api.github.com/users/jelbourn/gists{/gist_id}","starred_url":"https://api.github.com/users/jelbourn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelbourn/subscriptions","organizations_url":"https://api.github.com/users/jelbourn/orgs","repos_url":"https://api.github.com/users/jelbourn/repos","events_url":"https://api.github.com/users/jelbourn/events{/privacy}","received_events_url":"https://api.github.com/users/jelbourn/received_events","type":"User","site_admin":false},"body":"```ts\r\nMath.min(this.options.length * SELECT_OPTION_HEIGHT,  SELECT_PANEL_MAX_HEIGHT)\r\n```\r\n?","created_at":"2016-12-01T02:13:06Z","updated_at":"2016-12-01T02:19:20Z","html_url":"https://github.com/angular/material2/pull/2026#discussion_r90371504","pull_request_url":"https://api.github.com/repos/angular/material2/pulls/2026","_links":{"self":{"href":"https://api.github.com/repos/angular/material2/pulls/comments/90371504"},"html":{"href":"https://github.com/angular/material2/pull/2026#discussion_r90371504"},"pull_request":{"href":"https://api.github.com/repos/angular/material2/pulls/2026"}}},"pull_request":{"url":"https://api.github.com/repos/angular/material2/pulls/2026","id":95794717,"html_url":"https://github.com/angular/material2/pull/2026","diff_url":"https://github.com/angular/material2/pull/2026.diff","patch_url":"https://github.com/angular/material2/pull/2026.patch","issue_url":"https://api.github.com/repos/angular/material2/issues/2026","number":2026,"state":"open","locked":false,"title":"feat(select): align selected option over trigger","user":{"login":"kara","id":3871688,"avatar_url":"https://avatars.githubusercontent.com/u/3871688?v=3","gravatar_id":"","url":"https://api.github.com/users/kara","html_url":"https://github.com/kara","followers_url":"https://api.github.com/users/kara/followers","following_url":"https://api.github.com/users/kara/following{/other_user}","gists_url":"https://api.github.com/users/kara/gists{/gist_id}","starred_url":"https://api.github.com/users/kara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kara/subscriptions","organizations_url":"https://api.github.com/users/kara/orgs","repos_url":"https://api.github.com/users/kara/repos","events_url":"https://api.github.com/users/kara/events{/privacy}","received_events_url":"https://api.github.com/users/kara/received_events","type":"User","site_admin":false},"body":"\r\n\r\nr: @jelbourn ","created_at":"2016-11-29T23:04:50Z","updated_at":"2016-12-01T02:19:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a62a374f85935c7007121925d5fc0434ccb2f4cd","assignee":{"login":"jelbourn","id":838736,"avatar_url":"https://avatars.githubusercontent.com/u/838736?v=3","gravatar_id":"","url":"https://api.github.com/users/jelbourn","html_url":"https://github.com/jelbourn","followers_url":"https://api.github.com/users/jelbourn/followers","following_url":"https://api.github.com/users/jelbourn/following{/other_user}","gists_url":"https://api.github.com/users/jelbourn/gists{/gist_id}","starred_url":"https://api.github.com/users/jelbourn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelbourn/subscriptions","organizations_url":"https://api.github.com/users/jelbourn/orgs","repos_url":"https://api.github.com/users/jelbourn/repos","events_url":"https://api.github.com/users/jelbourn/events{/privacy}","received_events_url":"https://api.github.com/users/jelbourn/received_events","type":"User","site_admin":false},"assignees":[{"login":"jelbourn","id":838736,"avatar_url":"https://avatars.githubusercontent.com/u/838736?v=3","gravatar_id":"","url":"https://api.github.com/users/jelbourn","html_url":"https://github.com/jelbourn","followers_url":"https://api.github.com/users/jelbourn/followers","following_url":"https://api.github.com/users/jelbourn/following{/other_user}","gists_url":"https://api.github.com/users/jelbourn/gists{/gist_id}","starred_url":"https://api.github.com/users/jelbourn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelbourn/subscriptions","organizations_url":"https://api.github.com/users/jelbourn/orgs","repos_url":"https://api.github.com/users/jelbourn/repos","events_url":"https://api.github.com/users/jelbourn/events{/privacy}","received_events_url":"https://api.github.com/users/jelbourn/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/angular/material2/pulls/2026/commits","review_comments_url":"https://api.github.com/repos/angular/material2/pulls/2026/comments","review_comment_url":"https://api.github.com/repos/angular/material2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/material2/issues/2026/comments","statuses_url":"https://api.github.com/repos/angular/material2/statuses/503a168c9d1b9ff2769796a6b3e224a452498c7e","head":{"label":"kara:select-offset","ref":"select-offset","sha":"503a168c9d1b9ff2769796a6b3e224a452498c7e","user":{"login":"kara","id":3871688,"avatar_url":"https://avatars.githubusercontent.com/u/3871688?v=3","gravatar_id":"","url":"https://api.github.com/users/kara","html_url":"https://github.com/kara","followers_url":"https://api.github.com/users/kara/followers","following_url":"https://api.github.com/users/kara/following{/other_user}","gists_url":"https://api.github.com/users/kara/gists{/gist_id}","starred_url":"https://api.github.com/users/kara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kara/subscriptions","organizations_url":"https://api.github.com/users/kara/orgs","repos_url":"https://api.github.com/users/kara/repos","events_url":"https://api.github.com/users/kara/events{/privacy}","received_events_url":"https://api.github.com/users/kara/received_events","type":"User","site_admin":false},"repo":{"id":49738295,"name":"material2","full_name":"kara/material2","owner":{"login":"kara","id":3871688,"avatar_url":"https://avatars.githubusercontent.com/u/3871688?v=3","gravatar_id":"","url":"https://api.github.com/users/kara","html_url":"https://github.com/kara","followers_url":"https://api.github.com/users/kara/followers","following_url":"https://api.github.com/users/kara/following{/other_user}","gists_url":"https://api.github.com/users/kara/gists{/gist_id}","starred_url":"https://api.github.com/users/kara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kara/subscriptions","organizations_url":"https://api.github.com/users/kara/orgs","repos_url":"https://api.github.com/users/kara/repos","events_url":"https://api.github.com/users/kara/events{/privacy}","received_events_url":"https://api.github.com/users/kara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kara/material2","description":"Material Design components for Angular 2","fork":true,"url":"https://api.github.com/repos/kara/material2","forks_url":"https://api.github.com/repos/kara/material2/forks","keys_url":"https://api.github.com/repos/kara/material2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kara/material2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kara/material2/teams","hooks_url":"https://api.github.com/repos/kara/material2/hooks","issue_events_url":"https://api.github.com/repos/kara/material2/issues/events{/number}","events_url":"https://api.github.com/repos/kara/material2/events","assignees_url":"https://api.github.com/repos/kara/material2/assignees{/user}","branches_url":"https://api.github.com/repos/kara/material2/branches{/branch}","tags_url":"https://api.github.com/repos/kara/material2/tags","blobs_url":"https://api.github.com/repos/kara/material2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kara/material2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kara/material2/git/refs{/sha}","trees_url":"https://api.github.com/repos/kara/material2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kara/material2/statuses/{sha}","languages_url":"https://api.github.com/repos/kara/material2/languages","stargazers_url":"https://api.github.com/repos/kara/material2/stargazers","contributors_url":"https://api.github.com/repos/kara/material2/contributors","subscribers_url":"https://api.github.com/repos/kara/material2/subscribers","subscription_url":"https://api.github.com/repos/kara/material2/subscription","commits_url":"https://api.github.com/repos/kara/material2/commits{/sha}","git_commits_url":"https://api.github.com/repos/kara/material2/git/commits{/sha}","comments_url":"https://api.github.com/repos/kara/material2/comments{/number}","issue_comment_url":"https://api.github.com/repos/kara/material2/issues/comments{/number}","contents_url":"https://api.github.com/repos/kara/material2/contents/{+path}","compare_url":"https://api.github.com/repos/kara/material2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kara/material2/merges","archive_url":"https://api.github.com/repos/kara/material2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kara/material2/downloads","issues_url":"https://api.github.com/repos/kara/material2/issues{/number}","pulls_url":"https://api.github.com/repos/kara/material2/pulls{/number}","milestones_url":"https://api.github.com/repos/kara/material2/milestones{/number}","notifications_url":"https://api.github.com/repos/kara/material2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kara/material2/labels{/name}","releases_url":"https://api.github.com/repos/kara/material2/releases{/id}","deployments_url":"https://api.github.com/repos/kara/material2/deployments","created_at":"2016-01-15T18:50:19Z","updated_at":"2016-03-16T18:19:05Z","pushed_at":"2016-12-01T01:44:20Z","git_url":"git://github.com/kara/material2.git","ssh_url":"git@github.com:kara/material2.git","clone_url":"https://github.com/kara/material2.git","svn_url":"https://github.com/kara/material2","homepage":"","size":2366,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"angular:master","ref":"master","sha":"26eb7ceb1ef8b4b5c872c9355888173104f40b02","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":49016322,"name":"material2","full_name":"angular/material2","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/material2","description":"Material Design components for Angular 2","fork":false,"url":"https://api.github.com/repos/angular/material2","forks_url":"https://api.github.com/repos/angular/material2/forks","keys_url":"https://api.github.com/repos/angular/material2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/material2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/material2/teams","hooks_url":"https://api.github.com/repos/angular/material2/hooks","issue_events_url":"https://api.github.com/repos/angular/material2/issues/events{/number}","events_url":"https://api.github.com/repos/angular/material2/events","assignees_url":"https://api.github.com/repos/angular/material2/assignees{/user}","branches_url":"https://api.github.com/repos/angular/material2/branches{/branch}","tags_url":"https://api.github.com/repos/angular/material2/tags","blobs_url":"https://api.github.com/repos/angular/material2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/material2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/material2/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/material2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/material2/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/material2/languages","stargazers_url":"https://api.github.com/repos/angular/material2/stargazers","contributors_url":"https://api.github.com/repos/angular/material2/contributors","subscribers_url":"https://api.github.com/repos/angular/material2/subscribers","subscription_url":"https://api.github.com/repos/angular/material2/subscription","commits_url":"https://api.github.com/repos/angular/material2/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/material2/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/material2/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/material2/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/material2/contents/{+path}","compare_url":"https://api.github.com/repos/angular/material2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/material2/merges","archive_url":"https://api.github.com/repos/angular/material2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/material2/downloads","issues_url":"https://api.github.com/repos/angular/material2/issues{/number}","pulls_url":"https://api.github.com/repos/angular/material2/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/material2/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/material2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/material2/labels{/name}","releases_url":"https://api.github.com/repos/angular/material2/releases{/id}","deployments_url":"https://api.github.com/repos/angular/material2/deployments","created_at":"2016-01-04T18:50:02Z","updated_at":"2016-12-01T02:04:42Z","pushed_at":"2016-12-01T01:44:21Z","git_url":"git://github.com/angular/material2.git","ssh_url":"git@github.com:angular/material2.git","clone_url":"https://github.com/angular/material2.git","svn_url":"https://github.com/angular/material2","homepage":"https://material.angular.io/","size":9141,"stargazers_count":5890,"watchers_count":5890,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1175,"mirror_url":null,"open_issues_count":233,"forks":1175,"open_issues":233,"watchers":5890,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/material2/pulls/2026"},"html":{"href":"https://github.com/angular/material2/pull/2026"},"issue":{"href":"https://api.github.com/repos/angular/material2/issues/2026"},"comments":{"href":"https://api.github.com/repos/angular/material2/issues/2026/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/material2/pulls/2026/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/material2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/material2/pulls/2026/commits"},"statuses":{"href":"https://api.github.com/repos/angular/material2/statuses/503a168c9d1b9ff2769796a6b3e224a452498c7e"}}}}
{"actor":{"display_login":"jelbourn"}}