{"action":"created","issue":{"url":"https://api.github.com/repos/desandro/masonry/issues/752","labels_url":"https://api.github.com/repos/desandro/masonry/issues/752/labels{/name}","comments_url":"https://api.github.com/repos/desandro/masonry/issues/752/comments","events_url":"https://api.github.com/repos/desandro/masonry/issues/752/events","html_url":"https://github.com/desandro/masonry/issues/752","id":103931598,"number":752,"title":"imagesLoaded issue","user":{"login":"liuliangsir","id":8049878,"avatar_url":"https://avatars.githubusercontent.com/u/8049878?v=3","gravatar_id":"","url":"https://api.github.com/users/liuliangsir","html_url":"https://github.com/liuliangsir","followers_url":"https://api.github.com/users/liuliangsir/followers","following_url":"https://api.github.com/users/liuliangsir/following{/other_user}","gists_url":"https://api.github.com/users/liuliangsir/gists{/gist_id}","starred_url":"https://api.github.com/users/liuliangsir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liuliangsir/subscriptions","organizations_url":"https://api.github.com/users/liuliangsir/orgs","repos_url":"https://api.github.com/users/liuliangsir/repos","events_url":"https://api.github.com/users/liuliangsir/events{/privacy}","received_events_url":"https://api.github.com/users/liuliangsir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/desandro/masonry/labels/test%20case%20required","name":"test case required","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-30T15:52:38Z","updated_at":"2015-08-31T14:22:53Z","closed_at":null,"body":"imagesloaded($container,function(){\r\n\t\t\t\t$container.masonry({\r\n\t\t\t\t\tcolumnWidth: '.item',\r\n\t\t\t\t\titemSelector: '.item',\r\n\t\t\t\t});\r\n\t\t\t});\r\nthis code can auto call $container.masonry('layout')? if yes, first call upper code success,second call upper code fail. I want to know why"},"comment":{"url":"https://api.github.com/repos/desandro/masonry/issues/comments/136385439","html_url":"https://github.com/desandro/masonry/issues/752#issuecomment-136385439","issue_url":"https://api.github.com/repos/desandro/masonry/issues/752","id":136385439,"user":{"login":"liuliangsir","id":8049878,"avatar_url":"https://avatars.githubusercontent.com/u/8049878?v=3","gravatar_id":"","url":"https://api.github.com/users/liuliangsir","html_url":"https://github.com/liuliangsir","followers_url":"https://api.github.com/users/liuliangsir/followers","following_url":"https://api.github.com/users/liuliangsir/following{/other_user}","gists_url":"https://api.github.com/users/liuliangsir/gists{/gist_id}","starred_url":"https://api.github.com/users/liuliangsir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liuliangsir/subscriptions","organizations_url":"https://api.github.com/users/liuliangsir/orgs","repos_url":"https://api.github.com/users/liuliangsir/repos","events_url":"https://api.github.com/users/liuliangsir/events{/privacy}","received_events_url":"https://api.github.com/users/liuliangsir/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T14:22:53Z","updated_at":"2015-08-31T14:22:53Z","body":"thanks i has solved this problem by adding $container.masonry(\"reloadItems\"); then $container.masonry()"}}