# Auto adjust scrollbar to content

**URL:** <https://forum.kirupa.com/t/auto-adjust-scrollbar-to-content/257424>\
**Category:** Uncategorized\
**Created:** [April 14, 2008, 7:39am UTC](https://forum.kirupa.com/t/auto-adjust-scrollbar-to-content/257424 "2008-04-14T07:39:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![informationfirs](https://avatars.discourse-cdn.com/v4/letter/i/b5e925/32.png) [@informationfirs](https://forum.kirupa.com/u/informationfirs)\
**Post date:** [April 14, 2008, 7:39am UTC](https://forum.kirupa.com/t/auto-adjust-scrollbar-to-content/257424/1 "2008-04-14T07:39:26Z")

</div>

Hi There,

I am a product design student and I have to make a website as an assignment for my school. Next week is the presentation and now I have this little problem:

I found an instruction on this site on how to make a scrollbar and so far so good; it worked. The problem is that this scrollbar was only meant for a ‘non changing’ content. It means the ‘slidebar’ will always stay the same size. The problem is however that my content varies, one time it’s only text, when you’ll click a button, pictures slide out and so, the content will be bigger. For example, look at your screen on the right, this is the kind of scrollbar a need: The size of the slidingbar will change if you fold content out.

Now, the problem is I am very bad at actionscript, so that means that I need some help.  
I can send you the file by email so that you can take a look at the script.  
I would be very grateful if someone’s able to help me out!

Thanks in advance.
