# ComboBox textPadding

**URL:** https://forum.kirupa.com/t/combobox-textpadding/271457
**Category:** flash
**Created:** [September 23, 2008, 12:24pm UTC](https://forum.kirupa.com/t/combobox-textpadding/271457 "2008-09-23T12:24:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![W4rbl4cK](https://avatars.discourse-cdn.com/v4/letter/w/b9bd4f/32.png) [@W4rbl4cK](https://forum.kirupa.com/u/W4rbl4cK)
#### Post date: [September 23, 2008, 12:24pm UTC](https://forum.kirupa.com/t/combobox-textpadding/271457/1 "2008-09-23T12:24:44Z")

</div>

Hello everyone!

Please see the image below:

[Image](http://www.4gamesbrasil.com/warblack/question.jpg)

My code:

```auto
package com.project.swf
{
    import flash.display.*;
    import flash.text.*;
    import flash.utils.*;
    import fl.controls.*;
    import fl.containers.*;
    import fl.core.UIComponent;
    
    public class Contato extends MovieClip
    {        
        private var textFormat:TextFormat = new TextFormat();
        
        public function Contato()
        {
            _this_init();
        }
        
        private function _this_init():void
        {            
            textFormat = this.tahoma.defaultTextFormat;
            
            combobox.dropdown.setRendererStyle("textFormat", textFormat);
            combobox.textField.setStyle("textFormat", textFormat);
            combobox.setStyle("textFormat", textFormat);
            combobox.textField.setStyle("embedFonts", true);
            combobox.dropdown.setRendererStyle("embedFonts", true);
            
            // Combo Padding
            
            combobox.setStyle("textPadding", 1);
        }
        
        // Getters and Setters
        
        private function get combobox():ComboBox
        {
            return this._form.getChildByName("_combobox") as ComboBox;
        }
        
        private function get tahoma():TextField
        {
            return this._form.getChildByName("_tahoma") as TextField;
        }
        
    }
}

```

How i can change the padding / y position of the textField of the dropdown list?

Anyone can help me please? :pac:
