views:

29

answers:

1

I've created a ComboBox skin by extending mx.skins.ProgrammaticSkin. It's working fine, except I can't figure out how to limit the width of the text. Is there a way to control this within the skin?

See the attached image for an example of the text going too far. I would like it to stop before the separator line to the left of the down arrow.

Text going too far in ComboBox

A: 

you need to update the width of the label according to the control width.

Adrian Pirvulescu
Thanks! How do I set the width of the ComboBox label from within the ProgrammaticSkin, though?
Rhys Causey
Try to override the updateDisplayList(width:Number, height:Number):void method
Adrian Pirvulescu