{"action":"closed","number":1127,"pull_request":{"url":"https://api.github.com/repos/angular-ui/ui-select/pulls/1127","id":41750997,"html_url":"https://github.com/angular-ui/ui-select/pull/1127","diff_url":"https://github.com/angular-ui/ui-select/pull/1127.diff","patch_url":"https://github.com/angular-ui/ui-select/pull/1127.patch","issue_url":"https://api.github.com/repos/angular-ui/ui-select/issues/1127","number":1127,"state":"closed","locked":false,"title":"如果滚动条在body上下拉向上向下位置计算有误","user":{"login":"machuanjia","id":11783032,"avatar_url":"https://avatars.githubusercontent.com/u/11783032?v=3","gravatar_id":"","url":"https://api.github.com/users/machuanjia","html_url":"https://github.com/machuanjia","followers_url":"https://api.github.com/users/machuanjia/followers","following_url":"https://api.github.com/users/machuanjia/following{/other_user}","gists_url":"https://api.github.com/users/machuanjia/gists{/gist_id}","starred_url":"https://api.github.com/users/machuanjia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machuanjia/subscriptions","organizations_url":"https://api.github.com/users/machuanjia/orgs","repos_url":"https://api.github.com/users/machuanjia/repos","events_url":"https://api.github.com/users/machuanjia/events{/privacy}","received_events_url":"https://api.github.com/users/machuanjia/received_events","type":"User","site_admin":false},"body":"uiSelect：directive\r\nvar _scrollTop = $document[0].documentElement.scrollTop;\r\nif(_scrollTop === 0){\r\n  _scrollTop = angular.element(\"body\")[0].scrollTop;\r\n}\r\n// Determine if the direction of the dropdown needs to be changed.\r\nif (offset.top + offset.height + offsetDropdown.height > _scrollTop + $document[0].documentElement.clientHeight) {","created_at":"2015-08-06T04:28:14Z","updated_at":"2015-09-28T19:18:28Z","closed_at":"2015-09-28T19:18:28Z","merged_at":null,"merge_commit_sha":"6a650003d82e67d88d3d8261627a3d0d521327bc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/angular-ui/ui-select/pulls/1127/commits","review_comments_url":"https://api.github.com/repos/angular-ui/ui-select/pulls/1127/comments","review_comment_url":"https://api.github.com/repos/angular-ui/ui-select/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular-ui/ui-select/issues/1127/comments","statuses_url":"https://api.github.com/repos/angular-ui/ui-select/statuses/ea5f339a118ab7493e330a7df193ce801acbec86","head":{"label":"WorktileTech:master","ref":"master","sha":"ea5f339a118ab7493e330a7df193ce801acbec86","user":{"login":"WorktileTech","id":8873904,"avatar_url":"https://avatars.githubusercontent.com/u/8873904?v=3","gravatar_id":"","url":"https://api.github.com/users/WorktileTech","html_url":"https://github.com/WorktileTech","followers_url":"https://api.github.com/users/WorktileTech/followers","following_url":"https://api.github.com/users/WorktileTech/following{/other_user}","gists_url":"https://api.github.com/users/WorktileTech/gists{/gist_id}","starred_url":"https://api.github.com/users/WorktileTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WorktileTech/subscriptions","organizations_url":"https://api.github.com/users/WorktileTech/orgs","repos_url":"https://api.github.com/users/WorktileTech/repos","events_url":"https://api.github.com/users/WorktileTech/events{/privacy}","received_events_url":"https://api.github.com/users/WorktileTech/received_events","type":"Organization","site_admin":false},"repo":{"id":40283178,"name":"ui-select","full_name":"WorktileTech/ui-select","owner":{"login":"WorktileTech","id":8873904,"avatar_url":"https://avatars.githubusercontent.com/u/8873904?v=3","gravatar_id":"","url":"https://api.github.com/users/WorktileTech","html_url":"https://github.com/WorktileTech","followers_url":"https://api.github.com/users/WorktileTech/followers","following_url":"https://api.github.com/users/WorktileTech/following{/other_user}","gists_url":"https://api.github.com/users/WorktileTech/gists{/gist_id}","starred_url":"https://api.github.com/users/WorktileTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WorktileTech/subscriptions","organizations_url":"https://api.github.com/users/WorktileTech/orgs","repos_url":"https://api.github.com/users/WorktileTech/repos","events_url":"https://api.github.com/users/WorktileTech/events{/privacy}","received_events_url":"https://api.github.com/users/WorktileTech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WorktileTech/ui-select","description":"AngularJS-native version of Select2 and Selectize","fork":true,"url":"https://api.github.com/repos/WorktileTech/ui-select","forks_url":"https://api.github.com/repos/WorktileTech/ui-select/forks","keys_url":"https://api.github.com/repos/WorktileTech/ui-select/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WorktileTech/ui-select/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WorktileTech/ui-select/teams","hooks_url":"https://api.github.com/repos/WorktileTech/ui-select/hooks","issue_events_url":"https://api.github.com/repos/WorktileTech/ui-select/issues/events{/number}","events_url":"https://api.github.com/repos/WorktileTech/ui-select/events","assignees_url":"https://api.github.com/repos/WorktileTech/ui-select/assignees{/user}","branches_url":"https://api.github.com/repos/WorktileTech/ui-select/branches{/branch}","tags_url":"https://api.github.com/repos/WorktileTech/ui-select/tags","blobs_url":"https://api.github.com/repos/WorktileTech/ui-select/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WorktileTech/ui-select/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WorktileTech/ui-select/git/refs{/sha}","trees_url":"https://api.github.com/repos/WorktileTech/ui-select/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WorktileTech/ui-select/statuses/{sha}","languages_url":"https://api.github.com/repos/WorktileTech/ui-select/languages","stargazers_url":"https://api.github.com/repos/WorktileTech/ui-select/stargazers","contributors_url":"https://api.github.com/repos/WorktileTech/ui-select/contributors","subscribers_url":"https://api.github.com/repos/WorktileTech/ui-select/subscribers","subscription_url":"https://api.github.com/repos/WorktileTech/ui-select/subscription","commits_url":"https://api.github.com/repos/WorktileTech/ui-select/commits{/sha}","git_commits_url":"https://api.github.com/repos/WorktileTech/ui-select/git/commits{/sha}","comments_url":"https://api.github.com/repos/WorktileTech/ui-select/comments{/number}","issue_comment_url":"https://api.github.com/repos/WorktileTech/ui-select/issues/comments{/number}","contents_url":"https://api.github.com/repos/WorktileTech/ui-select/contents/{+path}","compare_url":"https://api.github.com/repos/WorktileTech/ui-select/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WorktileTech/ui-select/merges","archive_url":"https://api.github.com/repos/WorktileTech/ui-select/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WorktileTech/ui-select/downloads","issues_url":"https://api.github.com/repos/WorktileTech/ui-select/issues{/number}","pulls_url":"https://api.github.com/repos/WorktileTech/ui-select/pulls{/number}","milestones_url":"https://api.github.com/repos/WorktileTech/ui-select/milestones{/number}","notifications_url":"https://api.github.com/repos/WorktileTech/ui-select/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WorktileTech/ui-select/labels{/name}","releases_url":"https://api.github.com/repos/WorktileTech/ui-select/releases{/id}","created_at":"2015-08-06T03:53:07Z","updated_at":"2015-08-06T03:53:08Z","pushed_at":"2015-08-10T06:26:56Z","git_url":"git://github.com/WorktileTech/ui-select.git","ssh_url":"git@github.com:WorktileTech/ui-select.git","clone_url":"https://github.com/WorktileTech/ui-select.git","svn_url":"https://github.com/WorktileTech/ui-select","homepage":"","size":1201,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"angular-ui:master","ref":"master","sha":"f953cc374ae82eb6d1c26148aa827ee3a6436d06","user":{"login":"angular-ui","id":1530011,"avatar_url":"https://avatars.githubusercontent.com/u/1530011?v=3","gravatar_id":"","url":"https://api.github.com/users/angular-ui","html_url":"https://github.com/angular-ui","followers_url":"https://api.github.com/users/angular-ui/followers","following_url":"https://api.github.com/users/angular-ui/following{/other_user}","gists_url":"https://api.github.com/users/angular-ui/gists{/gist_id}","starred_url":"https://api.github.com/users/angular-ui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular-ui/subscriptions","organizations_url":"https://api.github.com/users/angular-ui/orgs","repos_url":"https://api.github.com/users/angular-ui/repos","events_url":"https://api.github.com/users/angular-ui/events{/privacy}","received_events_url":"https://api.github.com/users/angular-ui/received_events","type":"Organization","site_admin":false},"repo":{"id":12962729,"name":"ui-select","full_name":"angular-ui/ui-select","owner":{"login":"angular-ui","id":1530011,"avatar_url":"https://avatars.githubusercontent.com/u/1530011?v=3","gravatar_id":"","url":"https://api.github.com/users/angular-ui","html_url":"https://github.com/angular-ui","followers_url":"https://api.github.com/users/angular-ui/followers","following_url":"https://api.github.com/users/angular-ui/following{/other_user}","gists_url":"https://api.github.com/users/angular-ui/gists{/gist_id}","starred_url":"https://api.github.com/users/angular-ui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular-ui/subscriptions","organizations_url":"https://api.github.com/users/angular-ui/orgs","repos_url":"https://api.github.com/users/angular-ui/repos","events_url":"https://api.github.com/users/angular-ui/events{/privacy}","received_events_url":"https://api.github.com/users/angular-ui/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular-ui/ui-select","description":"AngularJS-native version of Select2 and Selectize","fork":false,"url":"https://api.github.com/repos/angular-ui/ui-select","forks_url":"https://api.github.com/repos/angular-ui/ui-select/forks","keys_url":"https://api.github.com/repos/angular-ui/ui-select/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular-ui/ui-select/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular-ui/ui-select/teams","hooks_url":"https://api.github.com/repos/angular-ui/ui-select/hooks","issue_events_url":"https://api.github.com/repos/angular-ui/ui-select/issues/events{/number}","events_url":"https://api.github.com/repos/angular-ui/ui-select/events","assignees_url":"https://api.github.com/repos/angular-ui/ui-select/assignees{/user}","branches_url":"https://api.github.com/repos/angular-ui/ui-select/branches{/branch}","tags_url":"https://api.github.com/repos/angular-ui/ui-select/tags","blobs_url":"https://api.github.com/repos/angular-ui/ui-select/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular-ui/ui-select/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular-ui/ui-select/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular-ui/ui-select/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular-ui/ui-select/statuses/{sha}","languages_url":"https://api.github.com/repos/angular-ui/ui-select/languages","stargazers_url":"https://api.github.com/repos/angular-ui/ui-select/stargazers","contributors_url":"https://api.github.com/repos/angular-ui/ui-select/contributors","subscribers_url":"https://api.github.com/repos/angular-ui/ui-select/subscribers","subscription_url":"https://api.github.com/repos/angular-ui/ui-select/subscription","commits_url":"https://api.github.com/repos/angular-ui/ui-select/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular-ui/ui-select/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular-ui/ui-select/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular-ui/ui-select/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular-ui/ui-select/contents/{+path}","compare_url":"https://api.github.com/repos/angular-ui/ui-select/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular-ui/ui-select/merges","archive_url":"https://api.github.com/repos/angular-ui/ui-select/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular-ui/ui-select/downloads","issues_url":"https://api.github.com/repos/angular-ui/ui-select/issues{/number}","pulls_url":"https://api.github.com/repos/angular-ui/ui-select/pulls{/number}","milestones_url":"https://api.github.com/repos/angular-ui/ui-select/milestones{/number}","notifications_url":"https://api.github.com/repos/angular-ui/ui-select/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular-ui/ui-select/labels{/name}","releases_url":"https://api.github.com/repos/angular-ui/ui-select/releases{/id}","created_at":"2013-09-20T00:38:35Z","updated_at":"2015-09-28T18:10:40Z","pushed_at":"2015-09-28T19:11:51Z","git_url":"git://github.com/angular-ui/ui-select.git","ssh_url":"git@github.com:angular-ui/ui-select.git","clone_url":"https://github.com/angular-ui/ui-select.git","svn_url":"https://github.com/angular-ui/ui-select","homepage":"","size":5364,"stargazers_count":1763,"watchers_count":1763,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":910,"mirror_url":null,"open_issues_count":681,"forks":910,"open_issues":681,"watchers":1763,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular-ui/ui-select/pulls/1127"},"html":{"href":"https://github.com/angular-ui/ui-select/pull/1127"},"issue":{"href":"https://api.github.com/repos/angular-ui/ui-select/issues/1127"},"comments":{"href":"https://api.github.com/repos/angular-ui/ui-select/issues/1127/comments"},"review_comments":{"href":"https://api.github.com/repos/angular-ui/ui-select/pulls/1127/comments"},"review_comment":{"href":"https://api.github.com/repos/angular-ui/ui-select/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular-ui/ui-select/pulls/1127/commits"},"statuses":{"href":"https://api.github.com/repos/angular-ui/ui-select/statuses/ea5f339a118ab7493e330a7df193ce801acbec86"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":4,"review_comments":1,"commits":7,"additions":22,"deletions":6,"changed_files":6}}