{"issue":{"created_at":"2011-12-03T13:07:10Z","state":"open","updated_at":"2011-12-05T07:43:02Z","comments":2,"user":{"gravatar_id":"a34b4c8833ea3a50145e53e8b05cacbf","id":700119,"url":"https://api.github.com/users/mayrrecordscan","avatar_url":"https://secure.gravatar.com/avatar/a34b4c8833ea3a50145e53e8b05cacbf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"mayrrecordscan"},"body":"Hey,\r\n\r\nif the scroll-div is invisible or hidden in its parent, the scrollbar position will be wrong. (as long as you do the first move event).\r\n\r\nmootools cant get the \"getPosition\" while the element is not visible. i changed the function \"reposition\"  like this: \r\n\r\n```javascript\r\nif(this.element.isVisible())\r\n\tthis.position = this.element.getPosition();\r\nelse\r\n\tthis.position = this.element.measure(function(){\r\n\t\t return this.getSize(); });\r\n","assignee":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"id":2437245,"number":6,"labels":[],"title":"Scrollbar Position Issue when div is display:none;","html_url":"https://github.com/julianlam/Scrollable/issues/6","closed_at":null,"url":"https://api.github.com/repos/julianlam/Scrollable/issues/6","milestone":null},"action":"created","comment":{"created_at":"2011-12-05T07:43:02Z","updated_at":"2011-12-05T07:43:02Z","user":{"gravatar_id":"a34b4c8833ea3a50145e53e8b05cacbf","id":700119,"url":"https://api.github.com/users/mayrrecordscan","avatar_url":"https://secure.gravatar.com/avatar/a34b4c8833ea3a50145e53e8b05cacbf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"mayrrecordscan"},"body":"Hey, \r\n\r\ni reprduced it on jsfiddle:\r\n\r\nhttp://jsfiddle.net/Wk8YP/51/\r\n\r\nthe problem is still alive.\r\n\r\n- click the \"show\" button. \r\n- scroll over the container. the scrollbar will fade in on a wrong calculated position. \r\n\r\n","id":3012101,"url":"https://api.github.com/repos/julianlam/Scrollable/issues/comments/3012101"}}