{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-grid/issues/5049","labels_url":"https://api.github.com/repos/angular-ui/ui-grid/issues/5049/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-grid/issues/5049/comments","events_url":"https://api.github.com/repos/angular-ui/ui-grid/issues/5049/events","html_url":"https://github.com/angular-ui/ui-grid/issues/5049","id":130394677,"number":5049,"title":"Add item and scroll to it immediatly","user":{"login":"Soul1399","id":16608040,"avatar_url":"https://avatars.githubusercontent.com/u/16608040?v=3","gravatar_id":"","url":"https://api.github.com/users/Soul1399","html_url":"https://github.com/Soul1399","followers_url":"https://api.github.com/users/Soul1399/followers","following_url":"https://api.github.com/users/Soul1399/following{/other_user}","gists_url":"https://api.github.com/users/Soul1399/gists{/gist_id}","starred_url":"https://api.github.com/users/Soul1399/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soul1399/subscriptions","organizations_url":"https://api.github.com/users/Soul1399/orgs","repos_url":"https://api.github.com/users/Soul1399/repos","events_url":"https://api.github.com/users/Soul1399/events{/privacy}","received_events_url":"https://api.github.com/users/Soul1399/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-01T15:37:26Z","updated_at":"2016-02-01T16:26:43Z","closed_at":"2016-02-01T16:26:43Z","body":"I encounter a problem of scrolling...\r\n\r\nI have a button that triggers an \"addItem\" function, performing a splice(0,0,item) onto my data array...\r\n\r\nI've tried\r\n$scope.gridApi.core.scrollTo\r\n$scope.gridApi.cellNav.scrollToFocus\r\n$(\".ui-grid-viewport\").scrollTop\r\n\r\nno way... it deos not work. It does not scroll at all.\r\nHowever, I had noticed that when I specified an other current data index, that had worked...\r\n\r\nIsn't there any event to trigger so that the grid can update the row positions?"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-grid/issues/comments/178055723","html_url":"https://github.com/angular-ui/ui-grid/issues/5049#issuecomment-178055723","issue_url":"https://api.github.com/repos/angular-ui/ui-grid/issues/5049","id":178055723,"user":{"login":"swalters","id":195646,"avatar_url":"https://avatars.githubusercontent.com/u/195646?v=3","gravatar_id":"","url":"https://api.github.com/users/swalters","html_url":"https://github.com/swalters","followers_url":"https://api.github.com/users/swalters/followers","following_url":"https://api.github.com/users/swalters/following{/other_user}","gists_url":"https://api.github.com/users/swalters/gists{/gist_id}","starred_url":"https://api.github.com/users/swalters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swalters/subscriptions","organizations_url":"https://api.github.com/users/swalters/orgs","repos_url":"https://api.github.com/users/swalters/repos","events_url":"https://api.github.com/users/swalters/events{/privacy}","received_events_url":"https://api.github.com/users/swalters/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T16:26:43Z","updated_at":"2016-02-01T16:26:43Z","body":"gitter or stack overflow please : https://github.com/angular-ui/ui-grid/blob/master/CONTRIBUTING.md"}}