# Text input enlarges movie clip too much?

**URL:** <https://forum.kirupa.com/t/text-input-enlarges-movie-clip-too-much/282491>\
**Category:** flash\
**Created:** [February 22, 2009, 10:16pm UTC](https://forum.kirupa.com/t/text-input-enlarges-movie-clip-too-much/282491 "2009-02-22T22:16:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marroon](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@marroon](https://forum.kirupa.com/u/marroon)\
**Post date:** [February 22, 2009, 10:16pm UTC](https://forum.kirupa.com/t/text-input-enlarges-movie-clip-too-much/282491/1 "2009-02-22T22:16:47Z")

</div>

in CS4:

public class TestComponent extends MovieClip{  
var textInput:TextInput = new TextInput();

```
    function TestComponent():void{
        trace('textInput W x H: ' + textInput.width + 'x' + textInput.height);
        trace('clip W x H: ' + width + 'x' + height);
        
        addChild(textInput);
        
        trace('textInput W x H: ' + textInput.width + 'x' + textInput.height);
        trace('clip W x H: ' + width + 'x' + height);
    }
}

```

output:  
textInput W x H: 100x22  
clip W x H: 0x0  
textInput W x H: 100x22  
clip W x H: 100x100

This is bizarre to me.  
Does anyone know why the height has become 100 instead of 22, like the textInput. Right now I just have to store the height before adding stuff to it since components seem to “corrupt” it.
