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.

inside custom component

Adobe AIR Development

Reply
Developer
Posts: 178
Registered: ‎04-16-2011
My Device: torch 9800
My Carrier: verizon
Accepted Solution

Displaying border around text when length unknown

Hi,

 

I am hoping to get a nice rounded rectangle around some text (label) on playbook, the width of the bubble is fixed but the height is dependent on the length of text being displayed.

 

How would i know what height to set the label itself and also the height of border bubble when using wordwrap??

 

Regards 

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Displaying border around text when length unknown

Did you try textWidth and textHeight attributes. Sometimes you might need to add some padding to these. If you need it more exact, there is an API for that.
Developer
Posts: 178
Registered: ‎04-16-2011
My Device: torch 9800
My Carrier: verizon

Re: Displaying border around text when length unknown

perfect!, thank you (again!) John.