{"action":"created","comment":{"url":"https://api.github.com/repos/angular/material/pulls/comments/58219144","id":58219144,"diff_hunk":"@@ -0,0 +1,71 @@\n+/**\n+ * @ngdoc directive\n+ * @name mdToolbar\n+ * @module material.components.toolbar\n+ * @restrict E\n+ * @description\n+ * `md-toolbar` is used to place a toolbar in your app.\n+ *\n+ * Toolbars are usually used above a content area to display the title of the\n+ * current page, and show relevant action buttons for that page.\n+ *\n+ * You can change the height of the toolbar by adding either the\n+ * `md-medium-tall` or `md-tall` class to the toolbar.\n+ *\n+ * @usage\n+ * <hljs lang=\"html\">\n+ * <div layout=\"column\" layout-fill>\n+ *   <md-toolbar>\n+ *\n+ *     <div class=\"md-toolbar-tools\">\n+ *       <span>My App's Title</span>\n+ *\n+ *       <!-- fill up the space between left and right area -->\n+ *       <span flex></span>\n+ *\n+ *       <md-button>\n+ *         Right Bar Button\n+ *       </md-button>\n+ *     </div>\n+ *\n+ *   </md-toolbar>\n+ *   <md-content>\n+ *     Hello!\n+ *   </md-content>\n+ * </div>\n+ * </hljs>\n+ *\n+ * @param {boolean=} md-scroll-shrink Whether the header should shrink away as\n+ * the user scrolls down, and reveal itself as the user scrolls up.\n+ *\n+ * _**Note (1):** for scrollShrink to work, the toolbar must be a sibling of a\n+ * `md-content` element, placed before it. See the scroll shrink demo._\n+ *\n+ * _**Note (2):** The `md-scroll-shrink` attribute is only parsed on component\n+ * initialization, it does not watch for scope changes._\n+ *\n+ *\n+ * @param {number=} md-shrink-speed-factor How much to change the speed of the toolbar's\n+ * shrinking by. For example, if 0.25 is given then the toolbar will shrink\n+ * at one fourth the rate at which the user scrolls down. Default 0.5.\n+ */\n+\n+angular.module('material.components.toolbar')\n+  .directive('mdToolbar', mdToolbarDirective);\n+\n+function mdToolbarDirective($$rAF, $mdConstant, $mdUtil, $mdTheming, $animate) {\n+\n+  return {\n+    template: '',\n+\n+    restrict: 'E',","path":"src/components/toolbar/js/toolbarDirective.js","position":61,"original_position":61,"commit_id":"d563373db66923a83c6fb13327b04116aa69fb26","original_commit_id":"d563373db66923a83c6fb13327b04116aa69fb26","user":{"login":"DevVersion","id":4987015,"avatar_url":"https://avatars.githubusercontent.com/u/4987015?v=3","gravatar_id":"","url":"https://api.github.com/users/DevVersion","html_url":"https://github.com/DevVersion","followers_url":"https://api.github.com/users/DevVersion/followers","following_url":"https://api.github.com/users/DevVersion/following{/other_user}","gists_url":"https://api.github.com/users/DevVersion/gists{/gist_id}","starred_url":"https://api.github.com/users/DevVersion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevVersion/subscriptions","organizations_url":"https://api.github.com/users/DevVersion/orgs","repos_url":"https://api.github.com/users/DevVersion/repos","events_url":"https://api.github.com/users/DevVersion/events{/privacy}","received_events_url":"https://api.github.com/users/DevVersion/received_events","type":"User","site_admin":false},"body":"Please remove those empty lines between the JSON object.","created_at":"2016-04-01T15:07:29Z","updated_at":"2016-04-01T15:07:29Z","html_url":"https://github.com/angular/material/pull/7763#discussion_r58219144","pull_request_url":"https://api.github.com/repos/angular/material/pulls/7763","_links":{"self":{"href":"https://api.github.com/repos/angular/material/pulls/comments/58219144"},"html":{"href":"https://github.com/angular/material/pull/7763#discussion_r58219144"},"pull_request":{"href":"https://api.github.com/repos/angular/material/pulls/7763"}}},"pull_request":{"url":"https://api.github.com/repos/angular/material/pulls/7763","id":64251047,"html_url":"https://github.com/angular/material/pull/7763","diff_url":"https://github.com/angular/material/pull/7763.diff","patch_url":"https://github.com/angular/material/pull/7763.patch","issue_url":"https://api.github.com/repos/angular/material/issues/7763","number":7763,"state":"open","locked":false,"title":"feat(tabs): tabs + toolbar shrinking behaviour","user":{"login":"corentin-gautier","id":4660731,"avatar_url":"https://avatars.githubusercontent.com/u/4660731?v=3","gravatar_id":"","url":"https://api.github.com/users/corentin-gautier","html_url":"https://github.com/corentin-gautier","followers_url":"https://api.github.com/users/corentin-gautier/followers","following_url":"https://api.github.com/users/corentin-gautier/following{/other_user}","gists_url":"https://api.github.com/users/corentin-gautier/gists{/gist_id}","starred_url":"https://api.github.com/users/corentin-gautier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corentin-gautier/subscriptions","organizations_url":"https://api.github.com/users/corentin-gautier/orgs","repos_url":"https://api.github.com/users/corentin-gautier/repos","events_url":"https://api.github.com/users/corentin-gautier/events{/privacy}","received_events_url":"https://api.github.com/users/corentin-gautier/received_events","type":"User","site_admin":false},"body":"also fixes pagination color issue & add md-button-offset for toolbar with nav button\r\n\r\n![tabs](https://cloud.githubusercontent.com/assets/4660731/14062753/faa86bb6-f3aa-11e5-8c1b-1e121c120f42.gif)\r\n\r\n","created_at":"2016-03-26T22:33:09Z","updated_at":"2016-04-01T15:07:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4eceec64ee42a141ab8f98d6b564e4c7bb9315b2","assignee":{"login":"ThomasBurleson","id":210413,"avatar_url":"https://avatars.githubusercontent.com/u/210413?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasBurleson","html_url":"https://github.com/ThomasBurleson","followers_url":"https://api.github.com/users/ThomasBurleson/followers","following_url":"https://api.github.com/users/ThomasBurleson/following{/other_user}","gists_url":"https://api.github.com/users/ThomasBurleson/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasBurleson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasBurleson/subscriptions","organizations_url":"https://api.github.com/users/ThomasBurleson/orgs","repos_url":"https://api.github.com/users/ThomasBurleson/repos","events_url":"https://api.github.com/users/ThomasBurleson/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasBurleson/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/angular/material/milestones/30","html_url":"https://github.com/angular/material/milestones/1.1.0","labels_url":"https://api.github.com/repos/angular/material/milestones/30/labels","id":1459999,"number":30,"title":"1.1.0","description":"","creator":{"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},"open_issues":77,"closed_issues":56,"state":"open","created_at":"2015-12-14T19:21:59Z","updated_at":"2016-04-01T14:59:05Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/angular/material/pulls/7763/commits","review_comments_url":"https://api.github.com/repos/angular/material/pulls/7763/comments","review_comment_url":"https://api.github.com/repos/angular/material/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/material/issues/7763/comments","statuses_url":"https://api.github.com/repos/angular/material/statuses/d563373db66923a83c6fb13327b04116aa69fb26","head":{"label":"corentin-gautier:tabs-shrink","ref":"tabs-shrink","sha":"d563373db66923a83c6fb13327b04116aa69fb26","user":{"login":"corentin-gautier","id":4660731,"avatar_url":"https://avatars.githubusercontent.com/u/4660731?v=3","gravatar_id":"","url":"https://api.github.com/users/corentin-gautier","html_url":"https://github.com/corentin-gautier","followers_url":"https://api.github.com/users/corentin-gautier/followers","following_url":"https://api.github.com/users/corentin-gautier/following{/other_user}","gists_url":"https://api.github.com/users/corentin-gautier/gists{/gist_id}","starred_url":"https://api.github.com/users/corentin-gautier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corentin-gautier/subscriptions","organizations_url":"https://api.github.com/users/corentin-gautier/orgs","repos_url":"https://api.github.com/users/corentin-gautier/repos","events_url":"https://api.github.com/users/corentin-gautier/events{/privacy}","received_events_url":"https://api.github.com/users/corentin-gautier/received_events","type":"User","site_admin":false},"repo":{"id":51651559,"name":"material","full_name":"corentin-gautier/material","owner":{"login":"corentin-gautier","id":4660731,"avatar_url":"https://avatars.githubusercontent.com/u/4660731?v=3","gravatar_id":"","url":"https://api.github.com/users/corentin-gautier","html_url":"https://github.com/corentin-gautier","followers_url":"https://api.github.com/users/corentin-gautier/followers","following_url":"https://api.github.com/users/corentin-gautier/following{/other_user}","gists_url":"https://api.github.com/users/corentin-gautier/gists{/gist_id}","starred_url":"https://api.github.com/users/corentin-gautier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corentin-gautier/subscriptions","organizations_url":"https://api.github.com/users/corentin-gautier/orgs","repos_url":"https://api.github.com/users/corentin-gautier/repos","events_url":"https://api.github.com/users/corentin-gautier/events{/privacy}","received_events_url":"https://api.github.com/users/corentin-gautier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/corentin-gautier/material","description":"Material design for Angular","fork":true,"url":"https://api.github.com/repos/corentin-gautier/material","forks_url":"https://api.github.com/repos/corentin-gautier/material/forks","keys_url":"https://api.github.com/repos/corentin-gautier/material/keys{/key_id}","collaborators_url":"https://api.github.com/repos/corentin-gautier/material/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/corentin-gautier/material/teams","hooks_url":"https://api.github.com/repos/corentin-gautier/material/hooks","issue_events_url":"https://api.github.com/repos/corentin-gautier/material/issues/events{/number}","events_url":"https://api.github.com/repos/corentin-gautier/material/events","assignees_url":"https://api.github.com/repos/corentin-gautier/material/assignees{/user}","branches_url":"https://api.github.com/repos/corentin-gautier/material/branches{/branch}","tags_url":"https://api.github.com/repos/corentin-gautier/material/tags","blobs_url":"https://api.github.com/repos/corentin-gautier/material/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/corentin-gautier/material/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/corentin-gautier/material/git/refs{/sha}","trees_url":"https://api.github.com/repos/corentin-gautier/material/git/trees{/sha}","statuses_url":"https://api.github.com/repos/corentin-gautier/material/statuses/{sha}","languages_url":"https://api.github.com/repos/corentin-gautier/material/languages","stargazers_url":"https://api.github.com/repos/corentin-gautier/material/stargazers","contributors_url":"https://api.github.com/repos/corentin-gautier/material/contributors","subscribers_url":"https://api.github.com/repos/corentin-gautier/material/subscribers","subscription_url":"https://api.github.com/repos/corentin-gautier/material/subscription","commits_url":"https://api.github.com/repos/corentin-gautier/material/commits{/sha}","git_commits_url":"https://api.github.com/repos/corentin-gautier/material/git/commits{/sha}","comments_url":"https://api.github.com/repos/corentin-gautier/material/comments{/number}","issue_comment_url":"https://api.github.com/repos/corentin-gautier/material/issues/comments{/number}","contents_url":"https://api.github.com/repos/corentin-gautier/material/contents/{+path}","compare_url":"https://api.github.com/repos/corentin-gautier/material/compare/{base}...{head}","merges_url":"https://api.github.com/repos/corentin-gautier/material/merges","archive_url":"https://api.github.com/repos/corentin-gautier/material/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/corentin-gautier/material/downloads","issues_url":"https://api.github.com/repos/corentin-gautier/material/issues{/number}","pulls_url":"https://api.github.com/repos/corentin-gautier/material/pulls{/number}","milestones_url":"https://api.github.com/repos/corentin-gautier/material/milestones{/number}","notifications_url":"https://api.github.com/repos/corentin-gautier/material/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/corentin-gautier/material/labels{/name}","releases_url":"https://api.github.com/repos/corentin-gautier/material/releases{/id}","deployments_url":"https://api.github.com/repos/corentin-gautier/material/deployments","created_at":"2016-02-13T15:29:18Z","updated_at":"2016-02-13T15:29:21Z","pushed_at":"2016-03-28T10:06:16Z","git_url":"git://github.com/corentin-gautier/material.git","ssh_url":"git@github.com:corentin-gautier/material.git","clone_url":"https://github.com/corentin-gautier/material.git","svn_url":"https://github.com/corentin-gautier/material","homepage":"https://material.angularjs.org/","size":41801,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"0b89a877ad31d0f7d425272f29d8c02600a12a88","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":21399598,"name":"material","full_name":"angular/material","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/material","description":"Material design for Angular","fork":false,"url":"https://api.github.com/repos/angular/material","forks_url":"https://api.github.com/repos/angular/material/forks","keys_url":"https://api.github.com/repos/angular/material/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/material/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/material/teams","hooks_url":"https://api.github.com/repos/angular/material/hooks","issue_events_url":"https://api.github.com/repos/angular/material/issues/events{/number}","events_url":"https://api.github.com/repos/angular/material/events","assignees_url":"https://api.github.com/repos/angular/material/assignees{/user}","branches_url":"https://api.github.com/repos/angular/material/branches{/branch}","tags_url":"https://api.github.com/repos/angular/material/tags","blobs_url":"https://api.github.com/repos/angular/material/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/material/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/material/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/material/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/material/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/material/languages","stargazers_url":"https://api.github.com/repos/angular/material/stargazers","contributors_url":"https://api.github.com/repos/angular/material/contributors","subscribers_url":"https://api.github.com/repos/angular/material/subscribers","subscription_url":"https://api.github.com/repos/angular/material/subscription","commits_url":"https://api.github.com/repos/angular/material/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/material/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/material/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/material/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/material/contents/{+path}","compare_url":"https://api.github.com/repos/angular/material/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/material/merges","archive_url":"https://api.github.com/repos/angular/material/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/material/downloads","issues_url":"https://api.github.com/repos/angular/material/issues{/number}","pulls_url":"https://api.github.com/repos/angular/material/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/material/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/material/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/material/labels{/name}","releases_url":"https://api.github.com/repos/angular/material/releases{/id}","deployments_url":"https://api.github.com/repos/angular/material/deployments","created_at":"2014-07-01T19:20:06Z","updated_at":"2016-04-01T13:44:27Z","pushed_at":"2016-04-01T15:05:28Z","git_url":"git://github.com/angular/material.git","ssh_url":"git@github.com:angular/material.git","clone_url":"https://github.com/angular/material.git","svn_url":"https://github.com/angular/material","homepage":"https://material.angularjs.org/","size":78867,"stargazers_count":13089,"watchers_count":13089,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2598,"mirror_url":null,"open_issues_count":1666,"forks":2598,"open_issues":1666,"watchers":13089,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/material/pulls/7763"},"html":{"href":"https://github.com/angular/material/pull/7763"},"issue":{"href":"https://api.github.com/repos/angular/material/issues/7763"},"comments":{"href":"https://api.github.com/repos/angular/material/issues/7763/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/material/pulls/7763/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/material/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/material/pulls/7763/commits"},"statuses":{"href":"https://api.github.com/repos/angular/material/statuses/d563373db66923a83c6fb13327b04116aa69fb26"}}}}