{"action":"opened","issue":{"url":"https://api.github.com/repos/metafizzy/flickity/issues/73","labels_url":"https://api.github.com/repos/metafizzy/flickity/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/metafizzy/flickity/issues/73/comments","events_url":"https://api.github.com/repos/metafizzy/flickity/issues/73/events","html_url":"https://github.com/metafizzy/flickity/issues/73","id":59872027,"number":73,"title":"Won't initialize properly when display: none","user":{"login":"jasonwbullok","id":10633657,"avatar_url":"https://avatars.githubusercontent.com/u/10633657?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonwbullok","html_url":"https://github.com/jasonwbullok","followers_url":"https://api.github.com/users/jasonwbullok/followers","following_url":"https://api.github.com/users/jasonwbullok/following{/other_user}","gists_url":"https://api.github.com/users/jasonwbullok/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonwbullok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonwbullok/subscriptions","organizations_url":"https://api.github.com/users/jasonwbullok/orgs","repos_url":"https://api.github.com/users/jasonwbullok/repos","events_url":"https://api.github.com/users/jasonwbullok/events{/privacy}","received_events_url":"https://api.github.com/users/jasonwbullok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-04T22:20:50Z","updated_at":"2015-03-04T22:20:50Z","closed_at":null,"body":"When a flickity gallery is initialized at display: none then toggled to display: block, the gallery won't function properly. Explicitly calling flickity(\"resize\") after display: block is toggled will resolve the issue, but it seems like it should do this natively. \r\n\r\nUncomment line 15 of the JS in the following pen to see the workaround:\r\n\r\nhttp://codepen.io/jasonwbullok/pen/LEBrXq"}}