{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5444","repository_url":"https://api.github.com/repos/angular-ui/bootstrap","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5444/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5444/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5444/events","html_url":"https://github.com/angular-ui/bootstrap/pull/5444","id":132244690,"number":5444,"title":"feat(datepicker): implement auto position","user":{"login":"RobJacobs","id":4559806,"avatar_url":"https://avatars.githubusercontent.com/u/4559806?v=3","gravatar_id":"","url":"https://api.github.com/users/RobJacobs","html_url":"https://github.com/RobJacobs","followers_url":"https://api.github.com/users/RobJacobs/followers","following_url":"https://api.github.com/users/RobJacobs/following{/other_user}","gists_url":"https://api.github.com/users/RobJacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/RobJacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobJacobs/subscriptions","organizations_url":"https://api.github.com/users/RobJacobs/orgs","repos_url":"https://api.github.com/users/RobJacobs/repos","events_url":"https://api.github.com/users/RobJacobs/events{/privacy}","received_events_url":"https://api.github.com/users/RobJacobs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/component:%20datepicker","name":"component: datepicker","color":"ffffff"},{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/type:%20enhancement","name":"type: enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"RobJacobs","id":4559806,"avatar_url":"https://avatars.githubusercontent.com/u/4559806?v=3","gravatar_id":"","url":"https://api.github.com/users/RobJacobs","html_url":"https://github.com/RobJacobs","followers_url":"https://api.github.com/users/RobJacobs/followers","following_url":"https://api.github.com/users/RobJacobs/following{/other_user}","gists_url":"https://api.github.com/users/RobJacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/RobJacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobJacobs/subscriptions","organizations_url":"https://api.github.com/users/RobJacobs/orgs","repos_url":"https://api.github.com/users/RobJacobs/repos","events_url":"https://api.github.com/users/RobJacobs/events{/privacy}","received_events_url":"https://api.github.com/users/RobJacobs/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/angular-ui/bootstrap/milestones/39","html_url":"https://github.com/angular-ui/bootstrap/milestones/1.2.0","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/milestones/39/labels","id":1544434,"number":39,"title":"1.2.0","description":"","creator":{"login":"wesleycho","id":1703387,"avatar_url":"https://avatars.githubusercontent.com/u/1703387?v=3","gravatar_id":"","url":"https://api.github.com/users/wesleycho","html_url":"https://github.com/wesleycho","followers_url":"https://api.github.com/users/wesleycho/followers","following_url":"https://api.github.com/users/wesleycho/following{/other_user}","gists_url":"https://api.github.com/users/wesleycho/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleycho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleycho/subscriptions","organizations_url":"https://api.github.com/users/wesleycho/orgs","repos_url":"https://api.github.com/users/wesleycho/repos","events_url":"https://api.github.com/users/wesleycho/events{/privacy}","received_events_url":"https://api.github.com/users/wesleycho/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":36,"state":"open","created_at":"2016-01-26T16:50:39Z","updated_at":"2016-02-13T07:34:09Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-02-08T20:10:14Z","updated_at":"2016-02-13T07:36:54Z","closed_at":"2016-02-13T07:34:09Z","pull_request":{"url":"https://api.github.com/repos/angular-ui/bootstrap/pulls/5444","html_url":"https://github.com/angular-ui/bootstrap/pull/5444","diff_url":"https://github.com/angular-ui/bootstrap/pull/5444.diff","patch_url":"https://github.com/angular-ui/bootstrap/pull/5444.patch"},"body":"Added popup-placement attribute that implements the auto position\r\nfeature that exists in the tooltip directive.  Accepts the same\r\nplacement options as the tooltip.\r\n\r\nThis [plunk](http://plnkr.co/edit/aXDt2IIE0J91JetH6iU9?p=preview) demos the feature.\r\n\r\nI haven't added test for this as I'm not sure on what the best approach is for finding an elements position in a test and would like some guidance on that.  The 2 minor changes in the readme.md is a result of my editor trimming trailing whitespace.\r\n\r\nIf this approach is acceptable, I plan on doing the same thing to the typeahead directive."},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/183615675","html_url":"https://github.com/angular-ui/bootstrap/pull/5444#issuecomment-183615675","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5444","id":183615675,"user":{"login":"wesleycho","id":1703387,"avatar_url":"https://avatars.githubusercontent.com/u/1703387?v=3","gravatar_id":"","url":"https://api.github.com/users/wesleycho","html_url":"https://github.com/wesleycho","followers_url":"https://api.github.com/users/wesleycho/followers","following_url":"https://api.github.com/users/wesleycho/following{/other_user}","gists_url":"https://api.github.com/users/wesleycho/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleycho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleycho/subscriptions","organizations_url":"https://api.github.com/users/wesleycho/orgs","repos_url":"https://api.github.com/users/wesleycho/repos","events_url":"https://api.github.com/users/wesleycho/events{/privacy}","received_events_url":"https://api.github.com/users/wesleycho/received_events","type":"User","site_admin":false},"created_at":"2016-02-13T07:36:54Z","updated_at":"2016-02-13T07:36:54Z","body":"Hm, I guess I forgot about the test part - how much testing does this need? We could perhaps test given certain CSS scenarios with regards to maybe display: block, position: relative/absolute, and floats.\r\n\r\nTooltip/popover would need them too."}}