# How to match parent movieclip size to grid of child clips?

**URL:** <https://forum.kirupa.com/t/how-to-match-parent-movieclip-size-to-grid-of-child-clips/245524>\
**Category:** flash\
**Created:** [November 30, 2007, 4:08pm UTC](https://forum.kirupa.com/t/how-to-match-parent-movieclip-size-to-grid-of-child-clips/245524 "2007-11-30T16:08:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tvdhoff](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tvdhoff/32/3088_2.png) [@tvdhoff](https://forum.kirupa.com/u/tvdhoff)\
**Post date:** [November 30, 2007, 4:08pm UTC](https://forum.kirupa.com/t/how-to-match-parent-movieclip-size-to-grid-of-child-clips/245524/1 "2007-11-30T16:08:39Z")

</div>

Hello all,

I’ve got a thumbnail grid which consists of dynamically created movieclips.  
A custom scrollbar moves the grids parent’s y-axis behind a mask.

The grid has a fixed width, but a variable height (as number of thumbnails may change).

Now, I need to have the parent movieclip reflect the dimension of the entire grid in order for the scrollbar to work.

How do I do this?

Thanks!
