{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/vlayout/issues/380","repository_url":"https://api.github.com/repos/alibaba/vlayout","labels_url":"https://api.github.com/repos/alibaba/vlayout/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/vlayout/issues/380/comments","events_url":"https://api.github.com/repos/alibaba/vlayout/issues/380/events","html_url":"https://github.com/alibaba/vlayout/issues/380","id":349888239,"node_id":"MDU6SXNzdWUzNDk4ODgyMzk=","number":380,"title":"StaggeredGridLayoutHelper bug","user":{"login":"LinXiaoTao","id":19836925,"node_id":"MDQ6VXNlcjE5ODM2OTI1","avatar_url":"https://avatars0.githubusercontent.com/u/19836925?v=4","gravatar_id":"","url":"https://api.github.com/users/LinXiaoTao","html_url":"https://github.com/LinXiaoTao","followers_url":"https://api.github.com/users/LinXiaoTao/followers","following_url":"https://api.github.com/users/LinXiaoTao/following{/other_user}","gists_url":"https://api.github.com/users/LinXiaoTao/gists{/gist_id}","starred_url":"https://api.github.com/users/LinXiaoTao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinXiaoTao/subscriptions","organizations_url":"https://api.github.com/users/LinXiaoTao/orgs","repos_url":"https://api.github.com/users/LinXiaoTao/repos","events_url":"https://api.github.com/users/LinXiaoTao/events{/privacy}","received_events_url":"https://api.github.com/users/LinXiaoTao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-13T05:00:51Z","updated_at":"2018-11-16T05:43:59Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"问题如图：\r\n滚动到底部后添加更多的 item，再滚动回头部，位置发生偏移。\r\n\r\n![svid_20180813_113958](https://user-images.githubusercontent.com/19836925/44013486-533ff532-9ef8-11e8-8866-36bf4b0b593c.gif)\r\n\r\n\r\n原先的：\r\n![screenshot_20180813-114934](https://user-images.githubusercontent.com/19836925/44013538-91c9990c-9ef8-11e8-9941-117a58538c17.png)\r\n\r\n\r\n加载更多后的：\r\n![screenshot_20180813-115030](https://user-images.githubusercontent.com/19836925/44013548-a5e3ed48-9ef8-11e8-88d6-4b2a87bff12a.png)\r\n\r\n\r\n如果让头部的 item 处于可视状态，再加载更多 item，就不会出现问题。"},"comment":{"url":"https://api.github.com/repos/alibaba/vlayout/issues/comments/439288703","html_url":"https://github.com/alibaba/vlayout/issues/380#issuecomment-439288703","issue_url":"https://api.github.com/repos/alibaba/vlayout/issues/380","id":439288703,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTI4ODcwMw==","user":{"login":"LinXiaoTao","id":19836925,"node_id":"MDQ6VXNlcjE5ODM2OTI1","avatar_url":"https://avatars0.githubusercontent.com/u/19836925?v=4","gravatar_id":"","url":"https://api.github.com/users/LinXiaoTao","html_url":"https://github.com/LinXiaoTao","followers_url":"https://api.github.com/users/LinXiaoTao/followers","following_url":"https://api.github.com/users/LinXiaoTao/following{/other_user}","gists_url":"https://api.github.com/users/LinXiaoTao/gists{/gist_id}","starred_url":"https://api.github.com/users/LinXiaoTao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinXiaoTao/subscriptions","organizations_url":"https://api.github.com/users/LinXiaoTao/orgs","repos_url":"https://api.github.com/users/LinXiaoTao/repos","events_url":"https://api.github.com/users/LinXiaoTao/events{/privacy}","received_events_url":"https://api.github.com/users/LinXiaoTao/received_events","type":"User","site_admin":false},"created_at":"2018-11-16T05:43:59Z","updated_at":"2018-11-16T05:43:59Z","author_association":"CONTRIBUTOR","body":"@xfilshy 是的，当时我也定位到这个问题了，不过我的问题是，vlayout 并没有对 `notifyItemInserted` 这些局部更新的方法做支持，都是全部清除，导致滑动回来，需要重建 span 位置信息，所以就错乱了 \r\n"}}
{"actor":{"display_login":"LinXiaoTao"}}