Growing Scrollbars help

So I’m using the brilliant custom scrollbar tutorial on Kirupa, and I’m struggling on adapting it when the content’s height changes. Basically whenever the scrollbar’s height changes I use the function

scrolling**();

**and that works fine, everything updates. However if you’ve already scrolled down halfway through the page and the content’s height changes, everything will screw up.

Take a look

Obviously I can just reset the content’s height every time I add a new box, I’ve tried it but it’s not what I want. I don’t know how to put the scroll face in the correct position.

Any help? :slight_smile:

Thanks