{"action":"created","issue":{"url":"https://api.github.com/repos/afklm/ng-lazy-image/issues/44","labels_url":"https://api.github.com/repos/afklm/ng-lazy-image/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/afklm/ng-lazy-image/issues/44/comments","events_url":"https://api.github.com/repos/afklm/ng-lazy-image/issues/44/events","html_url":"https://github.com/afklm/ng-lazy-image/issues/44","id":124721158,"number":44,"title":"Some images are not loaded when changing routes","user":{"login":"smnbbrv","id":13453858,"avatar_url":"https://avatars.githubusercontent.com/u/13453858?v=3","gravatar_id":"","url":"https://api.github.com/users/smnbbrv","html_url":"https://github.com/smnbbrv","followers_url":"https://api.github.com/users/smnbbrv/followers","following_url":"https://api.github.com/users/smnbbrv/following{/other_user}","gists_url":"https://api.github.com/users/smnbbrv/gists{/gist_id}","starred_url":"https://api.github.com/users/smnbbrv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smnbbrv/subscriptions","organizations_url":"https://api.github.com/users/smnbbrv/orgs","repos_url":"https://api.github.com/users/smnbbrv/repos","events_url":"https://api.github.com/users/smnbbrv/events{/privacy}","received_events_url":"https://api.github.com/users/smnbbrv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-04T09:20:28Z","updated_at":"2016-01-07T20:57:17Z","closed_at":null,"body":"Hello again guys,\r\n\r\nwhen I reload the page / switch between routes (using ui-router) _onViewChange for the objects contained by $window looks to be called in a wrong time because the height it calculates is much too big.\r\n\r\nIf I simply wrap _onViewChange content with a simple $timeout (or setTimeout 0ms) it seems to be fixed.\r\n\r\nIs there another way to fix this behavior? Maybe I do something wrong? The problem is that some images are not loaded in this case although the offset property I specify is 2 times bigger than images size.\r\n\r\nIf you need more data just let me know.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/afklm/ng-lazy-image/issues/comments/169802826","html_url":"https://github.com/afklm/ng-lazy-image/issues/44#issuecomment-169802826","issue_url":"https://api.github.com/repos/afklm/ng-lazy-image/issues/44","id":169802826,"user":{"login":"SquadraCorse","id":5846452,"avatar_url":"https://avatars.githubusercontent.com/u/5846452?v=3","gravatar_id":"","url":"https://api.github.com/users/SquadraCorse","html_url":"https://github.com/SquadraCorse","followers_url":"https://api.github.com/users/SquadraCorse/followers","following_url":"https://api.github.com/users/SquadraCorse/following{/other_user}","gists_url":"https://api.github.com/users/SquadraCorse/gists{/gist_id}","starred_url":"https://api.github.com/users/SquadraCorse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SquadraCorse/subscriptions","organizations_url":"https://api.github.com/users/SquadraCorse/orgs","repos_url":"https://api.github.com/users/SquadraCorse/repos","events_url":"https://api.github.com/users/SquadraCorse/events{/privacy}","received_events_url":"https://api.github.com/users/SquadraCorse/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T20:57:17Z","updated_at":"2016-01-07T20:57:17Z","body":"Thanks!"}}