Highlighted

Unusual behaviour of truncateToFit property in Flash Player and AIR application

Community Beginner ,
May 18, 2020

Copy link to clipboard

Copied

I have a Label

<mx:Label text="(PSIDs)" paddingLeft="0"/>

When I run the swf in Flash Player inside browser it looks like this 

Screen Shot 2020-05-19 at 1.45.36 AM.png 

 

When I run the same swf as AIR application it looks like this

Screen Shot 2020-05-19 at 1.46.49 AM.png

 

In AIR Application, Text is getting truncated by Ellipsis (three dots ... ) but works perfectly fine in Flash Player inside browser.

 

To fix this I need to add property

truncateToFit="false"

to the label, but I cannot make this change as we have used Label in hundreds of places.

 

TOPICS
Development, Other

Views

164

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Unusual behaviour of truncateToFit property in Flash Player and AIR application

Community Beginner ,
May 18, 2020

Copy link to clipboard

Copied

I have a Label

<mx:Label text="(PSIDs)" paddingLeft="0"/>

When I run the swf in Flash Player inside browser it looks like this 

Screen Shot 2020-05-19 at 1.45.36 AM.png 

 

When I run the same swf as AIR application it looks like this

Screen Shot 2020-05-19 at 1.46.49 AM.png

 

In AIR Application, Text is getting truncated by Ellipsis (three dots ... ) but works perfectly fine in Flash Player inside browser.

 

To fix this I need to add property

truncateToFit="false"

to the label, but I cannot make this change as we have used Label in hundreds of places.

 

TOPICS
Development, Other

Views

165

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 18, 2020 0

Have something to add?

Join the conversation