views:

46

answers:

1

If I create a mx:Label or mx:Text control in Flex and then set an opaqueBackground to it, I notice that there is some space around the text.

I would like to be able to get rid of that space to where the text is completely flush to the top and bottom of the label. Changing the gap, padding, and leading didn't seem to help. Is it possible to get the text completely flush to the sides of a label?

Thanks.

A: 

imho it should work in flex, same for height:

label.width = label.textWidth
www0z0k
This does not work. It simply starts to cut off the text portion of the label.
stjowa