{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/ca8ea8e76beff5f16e123277581c2460?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ca8ea8e76beff5f16e123277581c2460","url":"https://api.github.com/users/sincero","login":"sincero","id":1183157},"assignee":null,"updated_at":"2011-11-14T03:46:38Z","labels":[],"closed_at":null,"comments":2,"url":"https://api.github.com/repos/thomd/jquery-scroll/issues/17","body":"Im trying to figure out how to get the scroll bar to 'repaint' after content is added to my container via ajax. Im working with wordpress and I used the line:\r\n\r\n $('#mydiv').scrollbar('repaint');\r\n\r\nright after the ajax call, but i get nothing. think you could help me out?\r\n\r\nThanks :)","html_url":"https://github.com/thomd/jquery-scroll/issues/17","title":"Help getting repaint to work on ajax added content","number":17,"id":2185172,"created_at":"2011-11-09T11:07:16Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/ca8ea8e76beff5f16e123277581c2460?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ca8ea8e76beff5f16e123277581c2460","url":"https://api.github.com/users/sincero","login":"sincero","id":1183157},"updated_at":"2011-11-14T03:46:38Z","url":"https://api.github.com/repos/thomd/jquery-scroll/issues/comments/2726419","body":"Hello & thanks for replying. I think I figured it out, but in my opinion, it's sloppy lol. I kinda worked around it with an onmpuseout repaint. But like you said, I want it to do it after the success of the added content.\r\n\r\nI'm going to send you the Ajax part of my Wordpress/buddypress function that's adding the dynamic content right now\r\n\r\nThanks for this, I really appreciate it\r\n\r\nOn Nov 13, 2011, at 6:38 PM, thomd<reply@reply.github.com> wrote:\r\n\r\n> Hi sincero,\r\n> \r\n> actually a .scrollbar('repaint') should do the job.\r\n> What do you mean with \"... right after the ajax call ...\"? The repaint-callback needs to be within the success callback. \r\n> If you send me the code snippet you are using or a link to your site, I'm going to review it.\r\n> \r\n> Regards,\r\n> Thomas\r\n> \r\n> --- \r\n> Reply to this email directly or view it on GitHub:\r\n> https://github.com/thomd/jquery-scroll/issues/17#issuecomment-2725256","id":2726419,"created_at":"2011-11-14T03:46:38Z"}}