{"action":"created","issue":{"url":"https://api.github.com/repos/skidding/dragdealer/issues/101","labels_url":"https://api.github.com/repos/skidding/dragdealer/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/skidding/dragdealer/issues/101/comments","events_url":"https://api.github.com/repos/skidding/dragdealer/issues/101/events","html_url":"https://github.com/skidding/dragdealer/issues/101","id":107415944,"number":101,"title":"Can't initiate Dragdealer with DOM element while parent is hidden","user":{"login":"onassar","id":612938,"avatar_url":"https://avatars.githubusercontent.com/u/612938?v=3","gravatar_id":"","url":"https://api.github.com/users/onassar","html_url":"https://github.com/onassar","followers_url":"https://api.github.com/users/onassar/followers","following_url":"https://api.github.com/users/onassar/following{/other_user}","gists_url":"https://api.github.com/users/onassar/gists{/gist_id}","starred_url":"https://api.github.com/users/onassar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onassar/subscriptions","organizations_url":"https://api.github.com/users/onassar/orgs","repos_url":"https://api.github.com/users/onassar/repos","events_url":"https://api.github.com/users/onassar/events{/privacy}","received_events_url":"https://api.github.com/users/onassar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-20T20:28:47Z","updated_at":"2015-09-20T20:31:47Z","closed_at":null,"body":"Having trouble initiating a Dragdealer instance, passing in the DOM element itself. The catch is, if I run the code once it's parent container has had it's `display: none;` style removed, it works.\r\n\r\nHere's the code I'm using:\r\n\r\n    new Dragdealer(el, {\r\n        steps: 65,\r\n        slide: false,\r\n        snap: true,\r\n        animationCallback: function(x, y) {\r\n\r\n        }\r\n    });\r\n\r\nI think if you try the same, ensuring that the parent container is hidden, you'll notice it."},"comment":{"url":"https://api.github.com/repos/skidding/dragdealer/issues/comments/141831487","html_url":"https://github.com/skidding/dragdealer/issues/101#issuecomment-141831487","issue_url":"https://api.github.com/repos/skidding/dragdealer/issues/101","id":141831487,"user":{"login":"onassar","id":612938,"avatar_url":"https://avatars.githubusercontent.com/u/612938?v=3","gravatar_id":"","url":"https://api.github.com/users/onassar","html_url":"https://github.com/onassar","followers_url":"https://api.github.com/users/onassar/followers","following_url":"https://api.github.com/users/onassar/following{/other_user}","gists_url":"https://api.github.com/users/onassar/gists{/gist_id}","starred_url":"https://api.github.com/users/onassar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onassar/subscriptions","organizations_url":"https://api.github.com/users/onassar/orgs","repos_url":"https://api.github.com/users/onassar/repos","events_url":"https://api.github.com/users/onassar/events{/privacy}","received_events_url":"https://api.github.com/users/onassar/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T20:31:47Z","updated_at":"2015-09-20T20:31:47Z","body":"Oh also worth mentioning is that the DOM element is not yet part of the document tree. I create the `Dragdealer` instance, and after that, add the element to the document tree."}}