# Updating scrollbar after height change

**URL:** <https://forum.kirupa.com/t/updating-scrollbar-after-height-change/168078>\
**Category:** Uncategorized\
**Created:** [November 3, 2005, 7:05pm UTC](https://forum.kirupa.com/t/updating-scrollbar-after-height-change/168078 "2005-11-03T19:05:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![El\_Phantom](https://avatars.discourse-cdn.com/v4/letter/e/d6d6ee/32.png) [@El\_Phantom](https://forum.kirupa.com/u/El_Phantom)\
**Post date:** [November 3, 2005, 7:05pm UTC](https://forum.kirupa.com/t/updating-scrollbar-after-height-change/168078/1 "2005-11-03T19:05:06Z")

</div>

Hey everybody,

I’m writing a custom scrollbar for a project I’m working on, and I would like it to update the scroller size / position when the height of the scrollable object changes. All that code is already done, but without running an onEnterFrame or setInterval constantly to watch the \_height of the scrollable object, I can’t find a method of watching for \_height change. Object.watch() apparently doesn’t work with actionscript properties, so is there any other way, some other property that I can watch which gets updated whenever \_height gets updated?

For now I just have it using onEnterFrame, but if anybody knows a better way please help a guy out. 🙂

Thanks,

–EP
