0 Replies Latest reply on Jul 16, 2007 8:24 AM by kp@sas

    access cellRenderer textField in comboBox in AS3

    kp@sas Level 1
      Just getting up to speed in AS3 now and I am having problems skinning a custom comboBox component.

      I have created all the custom skins for my component and added a custom font but the font is not centering itself correctly in the dropdown list at runtime (its about 1 or 2 pixels off in the y). I cannot seem to find a way to adjust the y position of the text in the dropdown list. I can use:

      my_c.dropdown.setRendererStyle("textPadding",2);

      ...but all that does is adjust the indent (x) value of the text.

      And adding the align property to my custom textFormat for the dropdown only aligns it in the horizontal space as well.

      How the heck to I adjust the vertical align in the cellRender in the dropdown list!?

      Any help is greatly appreciated.