Yeti
Yeti

Reputation: 5818

How to change the vertical line gap of Label?

How can the vertical line gap of Label be changed?

Upvotes: 1

Views: 2179

Answers (1)

Wade Mueller
Wade Mueller

Reputation: 6059

I'm assuming you are asking about changing the space between lines when a spark Label is showing multiple lines of text. To do that, you set the lineHeight style to a percent value:

ActionScript:

myLabel.setStyle("lineHeight", "140%");

MXML:

<s:Label lineHeight="140%"/>

According to the documentation the default value is 120%. Hope that helps.

Upvotes: 5

Related Questions