{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/componentkit/issues/448","repository_url":"https://api.github.com/repos/facebook/componentkit","labels_url":"https://api.github.com/repos/facebook/componentkit/issues/448/labels{/name}","comments_url":"https://api.github.com/repos/facebook/componentkit/issues/448/comments","events_url":"https://api.github.com/repos/facebook/componentkit/issues/448/events","html_url":"https://github.com/facebook/componentkit/issues/448","id":123625069,"number":448,"title":"to keep uiCollectionView on the same row even new row added.","user":{"login":"tonychan818","id":5890291,"avatar_url":"https://avatars.githubusercontent.com/u/5890291?v=3","gravatar_id":"","url":"https://api.github.com/users/tonychan818","html_url":"https://github.com/tonychan818","followers_url":"https://api.github.com/users/tonychan818/followers","following_url":"https://api.github.com/users/tonychan818/following{/other_user}","gists_url":"https://api.github.com/users/tonychan818/gists{/gist_id}","starred_url":"https://api.github.com/users/tonychan818/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonychan818/subscriptions","organizations_url":"https://api.github.com/users/tonychan818/orgs","repos_url":"https://api.github.com/users/tonychan818/repos","events_url":"https://api.github.com/users/tonychan818/events{/privacy}","received_events_url":"https://api.github.com/users/tonychan818/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-23T09:14:04Z","updated_at":"2016-02-10T20:51:38Z","closed_at":"2016-02-10T20:51:38Z","body":"suppose now I have 10 rows\r\n...\r\n4\r\n5\r\n6\r\n7\r\n...\r\nwhen the row 0 inserted in the top.\r\nthe collectionView is automatically scrolled to become\r\n...\r\n3\r\n4\r\n5\r\n6\r\n...\r\nhow can I keep it to the position to focus on (4) according to the above case?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/componentkit/issues/comments/182578022","html_url":"https://github.com/facebook/componentkit/issues/448#issuecomment-182578022","issue_url":"https://api.github.com/repos/facebook/componentkit/issues/448","id":182578022,"user":{"login":"ocrickard","id":857665,"avatar_url":"https://avatars.githubusercontent.com/u/857665?v=3","gravatar_id":"","url":"https://api.github.com/users/ocrickard","html_url":"https://github.com/ocrickard","followers_url":"https://api.github.com/users/ocrickard/followers","following_url":"https://api.github.com/users/ocrickard/following{/other_user}","gists_url":"https://api.github.com/users/ocrickard/gists{/gist_id}","starred_url":"https://api.github.com/users/ocrickard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocrickard/subscriptions","organizations_url":"https://api.github.com/users/ocrickard/orgs","repos_url":"https://api.github.com/users/ocrickard/repos","events_url":"https://api.github.com/users/ocrickard/events{/privacy}","received_events_url":"https://api.github.com/users/ocrickard/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T20:51:38Z","updated_at":"2016-02-10T20:51:38Z","body":"This is more of a question for general UICollectionView, and not necessarily Components. You can solve this by recording and restoring scroll position relative to the elements in your list."}}