Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Adobe AIR Development

Reply
Trusted Contributor
osus
Posts: 160
Registered: ‎04-26-2012
My Carrier: Vodafone
Accepted Solution

(BB10) Multiline label

Hi all!

 

I've been trying to render a multiline label without sucess.

There were "multiline" and "wordwrap" methods before, but they aren't there now, so I can not force a label field to be multiline.

When extending there is a "isMultiline()" method, but can not find a way to set it.

 

Any idea?

My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords
Please use plain text.
Developer
jtegen
Posts: 6,152
Registered: ‎10-27-2010
My Carrier: AT&T

Re: (BB10) Multiline label

Use:

 

this.label.maxLines = 5; // or what ever

Please use plain text.
Trusted Contributor
osus
Posts: 160
Registered: ‎04-26-2012
My Carrier: Vodafone

Re: (BB10) Multiline label

OK, answring myself:

 

label.maxLines=0;

 

that's all

My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords
Please use plain text.
Trusted Contributor
osus
Posts: 160
Registered: ‎04-26-2012
My Carrier: Vodafone

Re: (BB10) Multiline label

Thankyou man! but I solved it setting to 0, this way it's automathic

My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords
Please use plain text.