# Why do childern scale with their parents?

**URL:** <https://forum.kirupa.com/t/why-do-childern-scale-with-their-parents/270893>\
**Category:** Uncategorized\
**Created:** [September 15, 2008, 11:13pm UTC](https://forum.kirupa.com/t/why-do-childern-scale-with-their-parents/270893 "2008-09-15T23:13:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaptankorkut](https://avatars.discourse-cdn.com/v4/letter/k/e9bcb4/32.png) [@kaptankorkut](https://forum.kirupa.com/u/kaptankorkut)\
**Post date:** [September 15, 2008, 11:13pm UTC](https://forum.kirupa.com/t/why-do-childern-scale-with-their-parents/270893/1 "2008-09-15T23:13:23Z")

</div>

Hi,

I am trying to implement a liquid GUI.

There is a “\_pictureContainer” as Sprite at level 1 and am loading a picture as “Bitmap” as its child.

There is a onResize function as usual, fired when the stage is resized.

The code looks like that:

```auto
 
var sw:Number = stage.stageWidth;
var sh:Number = stage.stageHeight;
_header.width = _footer.width = _pictureContainer.width = sw;
_pictureContainer.height = sh;
_footer.y = sh - fh;
_pictureContainer.getChildAt(0).height = sh;
_pictureContainer.getChildAt(0).scaleX = _pictureContainer.getChildAt(0).scaleY;

```

The image in the container should resize and fit the height and keep its proportion by the way. But takes automatically the size of the container(parent).

how can I handle resizing seperately?
