开发者

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"/>
开发者_JS百科    <mx:Label text="rd" paddingLeft="0" paddingRight="0"/>
</mx:HBox>


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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜