{"action":"created","issue":{"url":"https://api.github.com/repos/mpowaga/react-slider/issues/15","labels_url":"https://api.github.com/repos/mpowaga/react-slider/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/mpowaga/react-slider/issues/15/comments","events_url":"https://api.github.com/repos/mpowaga/react-slider/issues/15/events","html_url":"https://github.com/mpowaga/react-slider/issues/15","id":54002161,"number":15,"title":"Cannot figure out slider size if component is hidden","user":{"login":"dustinwtf","id":1725226,"avatar_url":"https://avatars.githubusercontent.com/u/1725226?v=3","gravatar_id":"","url":"https://api.github.com/users/dustinwtf","html_url":"https://github.com/dustinwtf","followers_url":"https://api.github.com/users/dustinwtf/followers","following_url":"https://api.github.com/users/dustinwtf/following{/other_user}","gists_url":"https://api.github.com/users/dustinwtf/gists{/gist_id}","starred_url":"https://api.github.com/users/dustinwtf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dustinwtf/subscriptions","organizations_url":"https://api.github.com/users/dustinwtf/orgs","repos_url":"https://api.github.com/users/dustinwtf/repos","events_url":"https://api.github.com/users/dustinwtf/events{/privacy}","received_events_url":"https://api.github.com/users/dustinwtf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-01-11T19:41:42Z","updated_at":"2015-10-22T22:06:40Z","closed_at":null,"body":"I have a component that is hidden on initial load, so on your `componentDidMount` you are calling `_handleResize` and that runs `getBoundingClientRect` and it returns all zeros.\r\n\r\nRight now, I am calling the `_handleResize` function as a work around when my component is visible. Is there something better I can do?"},"comment":{"url":"https://api.github.com/repos/mpowaga/react-slider/issues/comments/150369504","html_url":"https://github.com/mpowaga/react-slider/issues/15#issuecomment-150369504","issue_url":"https://api.github.com/repos/mpowaga/react-slider/issues/15","id":150369504,"user":{"login":"7rulnik","id":5969049,"avatar_url":"https://avatars.githubusercontent.com/u/5969049?v=3","gravatar_id":"","url":"https://api.github.com/users/7rulnik","html_url":"https://github.com/7rulnik","followers_url":"https://api.github.com/users/7rulnik/followers","following_url":"https://api.github.com/users/7rulnik/following{/other_user}","gists_url":"https://api.github.com/users/7rulnik/gists{/gist_id}","starred_url":"https://api.github.com/users/7rulnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/7rulnik/subscriptions","organizations_url":"https://api.github.com/users/7rulnik/orgs","repos_url":"https://api.github.com/users/7rulnik/repos","events_url":"https://api.github.com/users/7rulnik/events{/privacy}","received_events_url":"https://api.github.com/users/7rulnik/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T22:06:40Z","updated_at":"2015-10-22T22:06:40Z","body":"I also have a component that is hidden on initial load. I replaced `display: none` by `visibilty: hidden`. It works."}}