# Changing component's size doesnt update parent's size?

**URL:** <https://forum.kirupa.com/t/changing-components-size-doesnt-update-parents-size/305646>\
**Category:** Uncategorized\
**Created:** [March 1, 2010, 10:34am UTC](https://forum.kirupa.com/t/changing-components-size-doesnt-update-parents-size/305646 "2010-03-01T10:34:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![watcher](https://avatars.discourse-cdn.com/v4/letter/w/77aa72/32.png) [@watcher](https://forum.kirupa.com/u/watcher)\
**Post date:** [March 1, 2010, 10:34am UTC](https://forum.kirupa.com/t/changing-components-size-doesnt-update-parents-size/305646/1 "2010-03-01T10:34:20Z")

</div>

Hi All,

I have following problem:

```auto

title_txt = new TextInput( );
title_txt.setSize( 100, 20 );
// title_txt.update() // or something to update parent's height?
trace(title_txt.height, this.height) // 20, 0

```

So after i set TextArea’s height, the instance traces height properly, but its parent container in which it is contained traces still 0 height. I hear this is well-known component behavior [issue:]. Any ideas what should i do for this to trace instantly and not asynchronously the proper height? (because if i trace later it traces correct height)

NOTE: same with width (when using component’s setSize) and other components.
