Reputation: 5818
How can the vertical line gap of Label be changed?
Upvotes: 1
Views: 2179
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