{"action":"created","comment":{"url":"https://api.github.com/repos/angular/material2/pulls/comments/62610287","id":62610287,"diff_hunk":"@@ -1,8 +1,127 @@\n-import {Component} from '@angular/core';\n+import {\n+  Component,\n+  ViewEncapsulation,\n+  AfterContentChecked,\n+  OnInit,\n+  Input,\n+  ContentChildren,\n+  QueryList,\n+  Renderer,\n+  ElementRef\n+} from '@angular/core';\n+import {MdGridTile} from './grid-tile';\n+import {TileCoordinator} from './tile-coordinator';\n+import {\n+    TileStyler,\n+    RowHeightMode,\n+    FitTileStyler,\n+    RatioTileStyler,\n+    FixedTileStyler\n+} from './tile-styler';\n+import {Dir} from '../../core/rtl/dir';\n+\n+// TODO(kara): Conditional (responsive) column count / row size.\n+// TODO(kara): Re-layout on window resize / media change (debounced).\n+// TODO(kara): gridTileHeader and gridTileFooter.\n \n @Component({\n   selector: 'md-grid-list',\n+  host: { 'role': 'list' },\n   templateUrl: './components/grid-list/grid-list.html',\n   styleUrls: ['./components/grid-list/grid-list.css'],\n+  encapsulation: ViewEncapsulation.None","path":"src/components/grid-list/grid-list.ts","position":33,"original_position":33,"commit_id":"a29dcc578eaa8440c0ea73e77fa513979f9c5a4d","original_commit_id":"16413d9cddf0b91587b8e22c5995db6cb7703a1c","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":"Should have known :p  ","created_at":"2016-05-10T04:18:16Z","updated_at":"2016-05-10T04:18:16Z","html_url":"https://github.com/angular/material2/pull/405#discussion_r62610287","pull_request_url":"https://api.github.com/repos/angular/material2/pulls/405","_links":{"self":{"href":"https://api.github.com/repos/angular/material2/pulls/comments/62610287"},"html":{"href":"https://github.com/angular/material2/pull/405#discussion_r62610287"},"pull_request":{"href":"https://api.github.com/repos/angular/material2/pulls/405"}}},"pull_request":{"url":"https://api.github.com/repos/angular/material2/pulls/405","id":69297751,"html_url":"https://github.com/angular/material2/pull/405","diff_url":"https://github.com/angular/material2/pull/405.diff","patch_url":"https://github.com/angular/material2/pull/405.patch","issue_url":"https://api.github.com/repos/angular/material2/issues/405","number":405,"state":"open","locked":false,"title":"feat(grid-list): add grid-list component","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: @jelbourn \r\n\r\nIn this PR:\r\n- [x] Ported Jeremy's existing code from core\r\n- [x] Removed Dart facades and Dart-specific patterns\r\n- [x] Refactored to use new constructs like @ContentChildren and removed deprecated syntax\r\n- [x] Split out TileStyler into its own class\r\n- [x] Various bug fixes (e.g. hostbinding issue, rowspan edge case, etc)\r\n- [x] Added usability improvements\r\n   - [x] Friendly error when cols property is missing\r\n   - [x] Default rowHeight to 1:1 instead of silent fail\r\n   - [x] Use px by default if no units instead of silent fail\r\n   - [x] Set height automatically for fixed/ratio mode \r\n\r\nStill TODO (next PR):\r\n-  Unit tests\r\n-  Docs\r\n-  Responsive layout\r\n-  Grid tile header and footer\r\n-  Sass review/refactor","created_at":"2016-05-09T05:44:06Z","updated_at":"2016-05-10T04:18:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3708110fbe10b9fe126796dd05caa19407a802bc","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},"milestone":null,"commits_url":"https://api.github.com/repos/angular/material2/pulls/405/commits","review_comments_url":"https://api.github.com/repos/angular/material2/pulls/405/comments","review_comment_url":"https://api.github.com/repos/angular/material2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/material2/issues/405/comments","statuses_url":"https://api.github.com/repos/angular/material2/statuses/a29dcc578eaa8440c0ea73e77fa513979f9c5a4d","head":{"label":"kara:gridlist","ref":"gridlist","sha":"a29dcc578eaa8440c0ea73e77fa513979f9c5a4d","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-05-10T04:04:11Z","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":653,"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":"c56624289da6e29550e27a4e5f7d79034789ef04","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-05-10T03:56:45Z","pushed_at":"2016-05-10T04:04:12Z","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":"","size":926,"stargazers_count":2007,"watchers_count":2007,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":258,"mirror_url":null,"open_issues_count":83,"forks":258,"open_issues":83,"watchers":2007,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/material2/pulls/405"},"html":{"href":"https://github.com/angular/material2/pull/405"},"issue":{"href":"https://api.github.com/repos/angular/material2/issues/405"},"comments":{"href":"https://api.github.com/repos/angular/material2/issues/405/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/material2/pulls/405/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/material2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/material2/pulls/405/commits"},"statuses":{"href":"https://api.github.com/repos/angular/material2/statuses/a29dcc578eaa8440c0ea73e77fa513979f9c5a4d"}}}}