{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material/issues/1891","labels_url":"https://api.github.com/repos/angular/material/issues/1891/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/1891/comments","events_url":"https://api.github.com/repos/angular/material/issues/1891/events","html_url":"https://github.com/angular/material/issues/1891","id":60894142,"number":1891,"title":"element.focus() in $mdSidenav causes page jump","user":{"login":"nolandubeau","id":458553,"avatar_url":"https://avatars.githubusercontent.com/u/458553?v=3","gravatar_id":"","url":"https://api.github.com/users/nolandubeau","html_url":"https://github.com/nolandubeau","followers_url":"https://api.github.com/users/nolandubeau/followers","following_url":"https://api.github.com/users/nolandubeau/following{/other_user}","gists_url":"https://api.github.com/users/nolandubeau/gists{/gist_id}","starred_url":"https://api.github.com/users/nolandubeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolandubeau/subscriptions","organizations_url":"https://api.github.com/users/nolandubeau/orgs","repos_url":"https://api.github.com/users/nolandubeau/repos","events_url":"https://api.github.com/users/nolandubeau/events{/privacy}","received_events_url":"https://api.github.com/users/nolandubeau/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/material/labels/Demo%20Needed","name":"Demo Needed","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"marcysutton","id":1045233,"avatar_url":"https://avatars.githubusercontent.com/u/1045233?v=3","gravatar_id":"","url":"https://api.github.com/users/marcysutton","html_url":"https://github.com/marcysutton","followers_url":"https://api.github.com/users/marcysutton/followers","following_url":"https://api.github.com/users/marcysutton/following{/other_user}","gists_url":"https://api.github.com/users/marcysutton/gists{/gist_id}","starred_url":"https://api.github.com/users/marcysutton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcysutton/subscriptions","organizations_url":"https://api.github.com/users/marcysutton/orgs","repos_url":"https://api.github.com/users/marcysutton/repos","events_url":"https://api.github.com/users/marcysutton/events{/privacy}","received_events_url":"https://api.github.com/users/marcysutton/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/angular/material/milestones/10","html_url":"https://github.com/angular/material/milestones/0.9.0","labels_url":"https://api.github.com/repos/angular/material/milestones/10/labels","id":863796,"number":10,"title":"0.9.0","description":"## Goals\r\n\r\nThis is  **polishing** milestone to address many of the existing bugs, validate layouts and browser/device compatibility, and improve performance.","creator":{"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},"open_issues":212,"closed_issues":112,"state":"open","created_at":"2014-11-12T18:26:48Z","updated_at":"2015-03-30T19:32:38Z","due_on":"2015-03-31T05:00:00Z","closed_at":null},"comments":11,"created_at":"2015-03-12T20:25:59Z","updated_at":"2015-03-30T21:55:47Z","closed_at":null,"body":"Hi,  \r\nI am building an application which has a layout similar to the angular material design site.  At the very top of the page however, is another md-toolbar.  Below the first toolbar is the sidenav and the main content area.\r\n\r\nWith a layout like this when the sidenav is finished opening, element.focus() is called.  This causes the page to focus to the sidenav toolbar top, and causes the toolbar above the sidenav to be partially visible (since the page has scrolled).  Is it really necessary to have the element.focus() in the updateIsOpen function?  If I comment out element.focus(), the issue is fixed.\r\n\r\nif (scope.isOpen) {\r\n  //element.focus();\r\n}"},"comment":{"url":"https://api.github.com/repos/angular/material/issues/comments/87843396","html_url":"https://github.com/angular/material/issues/1891#issuecomment-87843396","issue_url":"https://api.github.com/repos/angular/material/issues/1891","id":87843396,"user":{"login":"DavidVaini","id":2159280,"avatar_url":"https://avatars.githubusercontent.com/u/2159280?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidVaini","html_url":"https://github.com/DavidVaini","followers_url":"https://api.github.com/users/DavidVaini/followers","following_url":"https://api.github.com/users/DavidVaini/following{/other_user}","gists_url":"https://api.github.com/users/DavidVaini/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidVaini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidVaini/subscriptions","organizations_url":"https://api.github.com/users/DavidVaini/orgs","repos_url":"https://api.github.com/users/DavidVaini/repos","events_url":"https://api.github.com/users/DavidVaini/events{/privacy}","received_events_url":"https://api.github.com/users/DavidVaini/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T21:55:47Z","updated_at":"2015-03-30T21:55:47Z","body":":+1:"}}