Omu
Omu

Reputation: 71216

Flex 3 make text from 2 labels in a Hbox look like one word

I'm adding dynamically labels to hbox, and i need to remove all spaces between the text of 2 nearby labels

i did horizontalGap = 0 for Hbox padding left and right = 0 for labels

anything else i could do ?

or maybe some other component ?

here is the code

    <mx:HBox horizontalGap="0">
    <mx:Label text="wo" paddingLeft="0" paddingRight="0"/>
    <mx:Label text="rd" paddingLeft="0" paddingRight="0"/>
</mx:HBox>

Upvotes: 0

Views: 1181

Answers (1)

bug-a-lot
bug-a-lot

Reputation: 2454

Why not use only one label and "dynamically" change its text property?

If you just don't want to do it like that, try using negative horizontalGap on the HBox until you get the desired effect, or paddingLeft negative on the second label. (horizontalGap would affect the layout of all the labels in the HBox)

Upvotes: 2

Related Questions