{"action":"created","issue":{"url":"https://api.github.com/repos/PaulSpr/jQuery-Flex-Vertical-Center/issues/12","labels_url":"https://api.github.com/repos/PaulSpr/jQuery-Flex-Vertical-Center/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/PaulSpr/jQuery-Flex-Vertical-Center/issues/12/comments","events_url":"https://api.github.com/repos/PaulSpr/jQuery-Flex-Vertical-Center/issues/12/events","html_url":"https://github.com/PaulSpr/jQuery-Flex-Vertical-Center/pull/12","id":45114621,"number":12,"title":"Update resizer function to fire on window load","user":{"login":"lucasklaassen","id":6452107,"avatar_url":"https://avatars.githubusercontent.com/u/6452107?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasklaassen","html_url":"https://github.com/lucasklaassen","followers_url":"https://api.github.com/users/lucasklaassen/followers","following_url":"https://api.github.com/users/lucasklaassen/following{/other_user}","gists_url":"https://api.github.com/users/lucasklaassen/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasklaassen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasklaassen/subscriptions","organizations_url":"https://api.github.com/users/lucasklaassen/orgs","repos_url":"https://api.github.com/users/lucasklaassen/repos","events_url":"https://api.github.com/users/lucasklaassen/events{/privacy}","received_events_url":"https://api.github.com/users/lucasklaassen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-10-07T14:35:12Z","updated_at":"2015-05-22T03:09:30Z","closed_at":"2014-10-07T14:37:10Z","pull_request":{"url":"https://api.github.com/repos/PaulSpr/jQuery-Flex-Vertical-Center/pulls/12","html_url":"https://github.com/PaulSpr/jQuery-Flex-Vertical-Center/pull/12","diff_url":"https://github.com/PaulSpr/jQuery-Flex-Vertical-Center/pull/12.diff","patch_url":"https://github.com/PaulSpr/jQuery-Flex-Vertical-Center/pull/12.patch"},"body":"The resizer function was being called before some of my div content was set which created a weird error and adding extra margin-top to my vertically centered div. I adjusted the code to fire the resize function on window.load and it works perfectly. "},"comment":{"url":"https://api.github.com/repos/PaulSpr/jQuery-Flex-Vertical-Center/issues/comments/104486738","html_url":"https://github.com/PaulSpr/jQuery-Flex-Vertical-Center/pull/12#issuecomment-104486738","issue_url":"https://api.github.com/repos/PaulSpr/jQuery-Flex-Vertical-Center/issues/12","id":104486738,"user":{"login":"joshuapaling","id":145042,"avatar_url":"https://avatars.githubusercontent.com/u/145042?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuapaling","html_url":"https://github.com/joshuapaling","followers_url":"https://api.github.com/users/joshuapaling/followers","following_url":"https://api.github.com/users/joshuapaling/following{/other_user}","gists_url":"https://api.github.com/users/joshuapaling/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuapaling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuapaling/subscriptions","organizations_url":"https://api.github.com/users/joshuapaling/orgs","repos_url":"https://api.github.com/users/joshuapaling/repos","events_url":"https://api.github.com/users/joshuapaling/events{/privacy}","received_events_url":"https://api.github.com/users/joshuapaling/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T03:09:30Z","updated_at":"2015-05-22T03:09:30Z","body":"This is a bad idea for most people. Most people want it called right away - and then possibly called again on window.load (note that if it's called on window.load, that replaces the need to also call it after all images are loaded).\r\n\r\nI'll submit a PR with more detail."}}