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
New Developer
Posts: 47
Registered: ‎10-22-2009
My Device: Not Specified

how to center a label in a container with fixed width

Hey guys any help with this?

 

I basically have a container with a fixed with (700 pixels). In this container i want to add a label. The label should be centered horizontally. How can this be done. I have tried doing TextFieldAutoSize and SizeMode.BOTH but no help.

Highlighted
Developer
Posts: 2,462
Registered: ‎11-04-2010
My Device: Bold 9700

Re: how to center a label in a container with fixed width

hey shethab,

 

maybe this thread can help you out with this:

 

http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/Center-label-with-autosize/m-p/71...

 

good luck!

J. Rab (Blog) (Twitter)
--
1. If you liked my post or found it useful please click on the thumbs up and provide a Like!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!

Approved Apps: OnTrack | ssShots | Hangman