Dan
Dan

Reputation: 1571

Get vertical labels to be close together

I cant quite understand why two vertical label components dont appear right under each other. There seems to be a lot of space between them, is there anyway to get this space removed as setting padding makes no difference at all.

For example, take this layout code:

<mx:VBox>
<mx:Label text="Title" paddingBottom="0" paddingLeft="0" paddingRight="0" paddingTop="0" />
<mx:Label text="Second bit of text I want to appear right under the first" paddingBottom="0" paddingLeft="0" paddingRight="0" paddingTop="0" />
</mx:VBox>

Upvotes: 0

Views: 300

Answers (2)

dirkgently
dirkgently

Reputation: 111150

You need to set the VBox's verticalGap to 0 or a suitable value.

Upvotes: 2

gargantuan
gargantuan

Reputation: 8944

Margin = 0?

Upvotes: 0

Related Questions