{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-scroll/issues/99","repository_url":"https://api.github.com/repos/angular-ui/ui-scroll","labels_url":"https://api.github.com/repos/angular-ui/ui-scroll/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-scroll/issues/99/comments","events_url":"https://api.github.com/repos/angular-ui/ui-scroll/issues/99/events","html_url":"https://github.com/angular-ui/ui-scroll/issues/99","id":159223970,"number":99,"title":"Min / max indexes are not adjusted on prepend / append ","user":{"login":"arudnev","id":1192686,"avatar_url":"https://avatars.githubusercontent.com/u/1192686?v=3","gravatar_id":"","url":"https://api.github.com/users/arudnev","html_url":"https://github.com/arudnev","followers_url":"https://api.github.com/users/arudnev/followers","following_url":"https://api.github.com/users/arudnev/following{/other_user}","gists_url":"https://api.github.com/users/arudnev/gists{/gist_id}","starred_url":"https://api.github.com/users/arudnev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arudnev/subscriptions","organizations_url":"https://api.github.com/users/arudnev/orgs","repos_url":"https://api.github.com/users/arudnev/repos","events_url":"https://api.github.com/users/arudnev/events{/privacy}","received_events_url":"https://api.github.com/users/arudnev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-08T17:16:40Z","updated_at":"2016-06-15T19:13:13Z","closed_at":null,"body":"When prepend / append operations are called on the adapter it does not result into changes of buffer.minIndex / buffer.maxIndex (setLower / setUpper are not called), which leads to incorrect calculation of top and bottom paddings in adjustPadding operation when datasource.minIndex / datasource.maxIndex are provided / maintained.\r\n\r\nThe following change seems to be fixing the issue:\r\n\r\n```javascript\r\n    this.append = function (newItems) {\r\n      buffer.append(newItems);\r\n      buffer.setUpper();\r\n      adjustBuffer();\r\n    };\r\n\r\n    this.prepend = function (newItems) {\r\n      buffer.prepend(newItems);\r\n      buffer.setLower();\r\n      adjustBuffer();\r\n    };\r\n```"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-scroll/issues/comments/226290199","html_url":"https://github.com/angular-ui/ui-scroll/issues/99#issuecomment-226290199","issue_url":"https://api.github.com/repos/angular-ui/ui-scroll/issues/99","id":226290199,"user":{"login":"dhilt","id":4365660,"avatar_url":"https://avatars.githubusercontent.com/u/4365660?v=3","gravatar_id":"","url":"https://api.github.com/users/dhilt","html_url":"https://github.com/dhilt","followers_url":"https://api.github.com/users/dhilt/followers","following_url":"https://api.github.com/users/dhilt/following{/other_user}","gists_url":"https://api.github.com/users/dhilt/gists{/gist_id}","starred_url":"https://api.github.com/users/dhilt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhilt/subscriptions","organizations_url":"https://api.github.com/users/dhilt/orgs","repos_url":"https://api.github.com/users/dhilt/repos","events_url":"https://api.github.com/users/dhilt/events{/privacy}","received_events_url":"https://api.github.com/users/dhilt/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T19:13:13Z","updated_at":"2016-06-15T19:13:13Z","body":"Since we have released v1.5.0 this issue becames not so actual. Also you may try the latest code with the fix you suggested before. Is it ok in your opinion? The end behaviour is not ideal I guess but much better than in your demo on v1.4.1..."}}
{"actor":{"display_login":"dhilt"}}