{"action":"created","issue":{"url":"https://api.github.com/repos/telly/TLYShyNavBar/issues/117","labels_url":"https://api.github.com/repos/telly/TLYShyNavBar/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/telly/TLYShyNavBar/issues/117/comments","events_url":"https://api.github.com/repos/telly/TLYShyNavBar/issues/117/events","html_url":"https://github.com/telly/TLYShyNavBar/pull/117","id":129923918,"number":117,"title":"Scroll view started with wrong content offset on some occasions","user":{"login":"gfzabarino","id":1040182,"avatar_url":"https://avatars.githubusercontent.com/u/1040182?v=3","gravatar_id":"","url":"https://api.github.com/users/gfzabarino","html_url":"https://github.com/gfzabarino","followers_url":"https://api.github.com/users/gfzabarino/followers","following_url":"https://api.github.com/users/gfzabarino/following{/other_user}","gists_url":"https://api.github.com/users/gfzabarino/gists{/gist_id}","starred_url":"https://api.github.com/users/gfzabarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfzabarino/subscriptions","organizations_url":"https://api.github.com/users/gfzabarino/orgs","repos_url":"https://api.github.com/users/gfzabarino/repos","events_url":"https://api.github.com/users/gfzabarino/events{/privacy}","received_events_url":"https://api.github.com/users/gfzabarino/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-30T01:17:04Z","updated_at":"2016-01-30T11:14:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/telly/TLYShyNavBar/pulls/117","html_url":"https://github.com/telly/TLYShyNavBar/pull/117","diff_url":"https://github.com/telly/TLYShyNavBar/pull/117.diff","patch_url":"https://github.com/telly/TLYShyNavBar/pull/117.patch"},"body":"Hey there, I was having an issue on a project I'm working on using this library. The issue was that a table view was being displayed with the wrong `contentOffset` when first loaded. The `contentInset` was fine though. In my particular case, the contentInset was 108 (20 status bar + 44 nav bar + 44 custom extension view). But after the `contentInset` was set by this library, the `contentOffset` was still using a previous value. I don't exactly know why this happened now (this didn't happened before), but the changes I'm sending fixes the issue.\r\n\r\nBasically, if by the time the `contentInset` was being set in the beginning the `preserveOffset` flag would have been `YES`, then the `contentOffset` property would have been updated correctly. However, forcing this to `YES` caused that when scrolling, the `contentOffset` was being modified as well, causing the amount of points to be scrolled to double.\r\n\r\nWhat I did to correct this was to remove this flag and rely on some flags about the scroll view itself.\r\n\r\nDoes this look good to you? Any thoughts about this PR? Thanks for this awesome library!"},"comment":{"url":"https://api.github.com/repos/telly/TLYShyNavBar/issues/comments/177151215","html_url":"https://github.com/telly/TLYShyNavBar/pull/117#issuecomment-177151215","issue_url":"https://api.github.com/repos/telly/TLYShyNavBar/issues/117","id":177151215,"user":{"login":"Mazyod","id":860511,"avatar_url":"https://avatars.githubusercontent.com/u/860511?v=3","gravatar_id":"","url":"https://api.github.com/users/Mazyod","html_url":"https://github.com/Mazyod","followers_url":"https://api.github.com/users/Mazyod/followers","following_url":"https://api.github.com/users/Mazyod/following{/other_user}","gists_url":"https://api.github.com/users/Mazyod/gists{/gist_id}","starred_url":"https://api.github.com/users/Mazyod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mazyod/subscriptions","organizations_url":"https://api.github.com/users/Mazyod/orgs","repos_url":"https://api.github.com/users/Mazyod/repos","events_url":"https://api.github.com/users/Mazyod/events{/privacy}","received_events_url":"https://api.github.com/users/Mazyod/received_events","type":"User","site_admin":false},"created_at":"2016-01-30T11:14:52Z","updated_at":"2016-01-30T11:14:52Z","body":"Superb contribution! After testing, I don't see any issues at all with this.\r\nGetting rid of code **and** fixing bugs has got to be the best thing any programmer can contribute :D Cheers!"}}