{"action":"created","comment":{"url":"https://api.github.com/repos/angular/material2/pulls/comments/123851503","pull_request_review_id":46098159,"id":123851503,"diff_hunk":"@@ -196,6 +215,32 @@ export class CdkTable<T> implements CollectionViewer {\n     }\n \n     this._isViewInitialized = true;\n+\n+    this._StickyRows.changes.subscribe((queryList: QueryList<CdkStickyRow>) => {\n+        let topOffset = 0;\n+\n+        if (queryList.toArray().length) {\n+        this.stickyRowsEnabled = true;\n+          setTimeout(() => {\n+            /** This needs to be called AFTER the \"ckd-table-sticky-rows-enabled\" class\n+             *  gets added to the table body to properly calculate the table's height.\n+             */\n+            this.tableHeight  = this.elementRef.nativeElement.getBoundingClientRect().height;\n+            this._changeDetectorRef.markForCheck();\n+          });\n+        } else {\n+          this.stickyRowsEnabled = false;\n+        }\n+\n+        queryList.forEach((item) => {","path":"src/lib/core/data-table/data-table.ts","position":83,"original_position":83,"commit_id":"3977e63a4689aa70f5f94c03cdf084c4f6b22254","original_commit_id":"3977e63a4689aa70f5f94c03cdf084c4f6b22254","user":{"login":"andrewseguin","id":22898577,"avatar_url":"https://avatars0.githubusercontent.com/u/22898577?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewseguin","html_url":"https://github.com/andrewseguin","followers_url":"https://api.github.com/users/andrewseguin/followers","following_url":"https://api.github.com/users/andrewseguin/following{/other_user}","gists_url":"https://api.github.com/users/andrewseguin/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewseguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewseguin/subscriptions","organizations_url":"https://api.github.com/users/andrewseguin/orgs","repos_url":"https://api.github.com/users/andrewseguin/repos","events_url":"https://api.github.com/users/andrewseguin/events{/privacy}","received_events_url":"https://api.github.com/users/andrewseguin/received_events","type":"User","site_admin":false},"body":"How does this work with multiple sticky rows? Can you reproduce in demo?","created_at":"2017-06-23T21:52:24Z","updated_at":"2017-06-23T21:52:35Z","html_url":"https://github.com/angular/material2/pull/5261#discussion_r123851503","pull_request_url":"https://api.github.com/repos/angular/material2/pulls/5261","_links":{"self":{"href":"https://api.github.com/repos/angular/material2/pulls/comments/123851503"},"html":{"href":"https://github.com/angular/material2/pull/5261#discussion_r123851503"},"pull_request":{"href":"https://api.github.com/repos/angular/material2/pulls/5261"}}},"pull_request":{"url":"https://api.github.com/repos/angular/material2/pulls/5261","id":126627220,"html_url":"https://github.com/angular/material2/pull/5261","diff_url":"https://github.com/angular/material2/pull/5261.diff","patch_url":"https://github.com/angular/material2/pull/5261.patch","issue_url":"https://api.github.com/repos/angular/material2/issues/5261","number":5261,"state":"open","locked":false,"title":"feat(sticky rows): add initial sticky rows component","user":{"login":"DerekLouie","id":709204,"avatar_url":"https://avatars3.githubusercontent.com/u/709204?v=3","gravatar_id":"","url":"https://api.github.com/users/DerekLouie","html_url":"https://github.com/DerekLouie","followers_url":"https://api.github.com/users/DerekLouie/followers","following_url":"https://api.github.com/users/DerekLouie/following{/other_user}","gists_url":"https://api.github.com/users/DerekLouie/gists{/gist_id}","starred_url":"https://api.github.com/users/DerekLouie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DerekLouie/subscriptions","organizations_url":"https://api.github.com/users/DerekLouie/orgs","repos_url":"https://api.github.com/users/DerekLouie/repos","events_url":"https://api.github.com/users/DerekLouie/events{/privacy}","received_events_url":"https://api.github.com/users/DerekLouie/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-20T20:53:14Z","updated_at":"2017-06-23T21:52:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5bb97f084badeb9ac5f8f9a8e30ecae4e416f39a","assignee":null,"assignees":[],"requested_reviewers":[{"login":"ErinCoughlan","id":2660421,"avatar_url":"https://avatars0.githubusercontent.com/u/2660421?v=3","gravatar_id":"","url":"https://api.github.com/users/ErinCoughlan","html_url":"https://github.com/ErinCoughlan","followers_url":"https://api.github.com/users/ErinCoughlan/followers","following_url":"https://api.github.com/users/ErinCoughlan/following{/other_user}","gists_url":"https://api.github.com/users/ErinCoughlan/gists{/gist_id}","starred_url":"https://api.github.com/users/ErinCoughlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErinCoughlan/subscriptions","organizations_url":"https://api.github.com/users/ErinCoughlan/orgs","repos_url":"https://api.github.com/users/ErinCoughlan/repos","events_url":"https://api.github.com/users/ErinCoughlan/events{/privacy}","received_events_url":"https://api.github.com/users/ErinCoughlan/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/angular/material2/pulls/5261/commits","review_comments_url":"https://api.github.com/repos/angular/material2/pulls/5261/comments","review_comment_url":"https://api.github.com/repos/angular/material2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/material2/issues/5261/comments","statuses_url":"https://api.github.com/repos/angular/material2/statuses/3977e63a4689aa70f5f94c03cdf084c4f6b22254","head":{"label":"DerekLouie:master","ref":"master","sha":"3977e63a4689aa70f5f94c03cdf084c4f6b22254","user":{"login":"DerekLouie","id":709204,"avatar_url":"https://avatars3.githubusercontent.com/u/709204?v=3","gravatar_id":"","url":"https://api.github.com/users/DerekLouie","html_url":"https://github.com/DerekLouie","followers_url":"https://api.github.com/users/DerekLouie/followers","following_url":"https://api.github.com/users/DerekLouie/following{/other_user}","gists_url":"https://api.github.com/users/DerekLouie/gists{/gist_id}","starred_url":"https://api.github.com/users/DerekLouie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DerekLouie/subscriptions","organizations_url":"https://api.github.com/users/DerekLouie/orgs","repos_url":"https://api.github.com/users/DerekLouie/repos","events_url":"https://api.github.com/users/DerekLouie/events{/privacy}","received_events_url":"https://api.github.com/users/DerekLouie/received_events","type":"User","site_admin":false},"repo":{"id":93888118,"name":"material2","full_name":"DerekLouie/material2","owner":{"login":"DerekLouie","id":709204,"avatar_url":"https://avatars3.githubusercontent.com/u/709204?v=3","gravatar_id":"","url":"https://api.github.com/users/DerekLouie","html_url":"https://github.com/DerekLouie","followers_url":"https://api.github.com/users/DerekLouie/followers","following_url":"https://api.github.com/users/DerekLouie/following{/other_user}","gists_url":"https://api.github.com/users/DerekLouie/gists{/gist_id}","starred_url":"https://api.github.com/users/DerekLouie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DerekLouie/subscriptions","organizations_url":"https://api.github.com/users/DerekLouie/orgs","repos_url":"https://api.github.com/users/DerekLouie/repos","events_url":"https://api.github.com/users/DerekLouie/events{/privacy}","received_events_url":"https://api.github.com/users/DerekLouie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DerekLouie/material2","description":"Material Design components for Angular","fork":true,"url":"https://api.github.com/repos/DerekLouie/material2","forks_url":"https://api.github.com/repos/DerekLouie/material2/forks","keys_url":"https://api.github.com/repos/DerekLouie/material2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DerekLouie/material2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DerekLouie/material2/teams","hooks_url":"https://api.github.com/repos/DerekLouie/material2/hooks","issue_events_url":"https://api.github.com/repos/DerekLouie/material2/issues/events{/number}","events_url":"https://api.github.com/repos/DerekLouie/material2/events","assignees_url":"https://api.github.com/repos/DerekLouie/material2/assignees{/user}","branches_url":"https://api.github.com/repos/DerekLouie/material2/branches{/branch}","tags_url":"https://api.github.com/repos/DerekLouie/material2/tags","blobs_url":"https://api.github.com/repos/DerekLouie/material2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DerekLouie/material2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DerekLouie/material2/git/refs{/sha}","trees_url":"https://api.github.com/repos/DerekLouie/material2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DerekLouie/material2/statuses/{sha}","languages_url":"https://api.github.com/repos/DerekLouie/material2/languages","stargazers_url":"https://api.github.com/repos/DerekLouie/material2/stargazers","contributors_url":"https://api.github.com/repos/DerekLouie/material2/contributors","subscribers_url":"https://api.github.com/repos/DerekLouie/material2/subscribers","subscription_url":"https://api.github.com/repos/DerekLouie/material2/subscription","commits_url":"https://api.github.com/repos/DerekLouie/material2/commits{/sha}","git_commits_url":"https://api.github.com/repos/DerekLouie/material2/git/commits{/sha}","comments_url":"https://api.github.com/repos/DerekLouie/material2/comments{/number}","issue_comment_url":"https://api.github.com/repos/DerekLouie/material2/issues/comments{/number}","contents_url":"https://api.github.com/repos/DerekLouie/material2/contents/{+path}","compare_url":"https://api.github.com/repos/DerekLouie/material2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DerekLouie/material2/merges","archive_url":"https://api.github.com/repos/DerekLouie/material2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DerekLouie/material2/downloads","issues_url":"https://api.github.com/repos/DerekLouie/material2/issues{/number}","pulls_url":"https://api.github.com/repos/DerekLouie/material2/pulls{/number}","milestones_url":"https://api.github.com/repos/DerekLouie/material2/milestones{/number}","notifications_url":"https://api.github.com/repos/DerekLouie/material2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DerekLouie/material2/labels{/name}","releases_url":"https://api.github.com/repos/DerekLouie/material2/releases{/id}","deployments_url":"https://api.github.com/repos/DerekLouie/material2/deployments","created_at":"2017-06-09T18:51:43Z","updated_at":"2017-06-09T18:51:46Z","pushed_at":"2017-06-20T22:24:22Z","git_url":"git://github.com/DerekLouie/material2.git","ssh_url":"git@github.com:DerekLouie/material2.git","clone_url":"https://github.com/DerekLouie/material2.git","svn_url":"https://github.com/DerekLouie/material2","homepage":"https://material.angular.io/","size":5998,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"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":"1a03ee15b33f0c7be89b524e4911cf4b912e76d6","user":{"login":"angular","id":139426,"avatar_url":"https://avatars0.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://avatars0.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","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":"2017-06-23T21:50:45Z","pushed_at":"2017-06-23T21:44:44Z","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":6186,"stargazers_count":9379,"watchers_count":9379,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2148,"mirror_url":null,"open_issues_count":570,"forks":2148,"open_issues":570,"watchers":9379,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/material2/pulls/5261"},"html":{"href":"https://github.com/angular/material2/pull/5261"},"issue":{"href":"https://api.github.com/repos/angular/material2/issues/5261"},"comments":{"href":"https://api.github.com/repos/angular/material2/issues/5261/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/material2/pulls/5261/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/material2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/material2/pulls/5261/commits"},"statuses":{"href":"https://api.github.com/repos/angular/material2/statuses/3977e63a4689aa70f5f94c03cdf084c4f6b22254"}}}}
{"actor":{"display_login":"andrewseguin"}}