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

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 41
Registered: ‎10-16-2012
My Device: Bold 9000
My Carrier: Telus

TextAlignment

As of 10.1 all my text alignment is broken.  Every text field is aligned left until the user edits it and then it takes on the coded alignment.  Is there a fix for this?

Contributor
Posts: 41
Registered: ‎10-16-2012
My Device: Bold 9000
My Carrier: Telus

Re: TextAlignment

All my labels that were text alligned to the right are also now aligned to the left.  Grrrrrrrrr.  Screws up my entire ui.

Contributor
Posts: 41
Registered: ‎10-16-2012
My Device: Bold 9000
My Carrier: Telus

Re: TextAlignment

Well if I change my sdk back to 10.0.xxx everything aligns properly again.  I was playing around and if my text of my textfield is "naf" it aligns properly.  As soon as I delete the "f" or change it the alignment goes left again.  And I'm not even drunk.  

Highlighted
Contributor
Posts: 41
Registered: ‎10-16-2012
My Device: Bold 9000
My Carrier: Telus

Re: TextAlignment

Well I've pretty much wasted a day of development time with this issue.  The worst part is I can't seem to find anyone else with the issue.  I'm using a Mac with a fully updated version of Momentics and a fully updated Z10, Q10, and Dev Alpha C for testing.  Any textfield I create has it's text aligned left no matter what I set it to.  Once I build and run it displays aligned left on the device until I edit the value at which point it instantly changes to the alignment it has been set for.  I would very much appreciate if others could test this on their own devices and let me know if this issue is only on my setup for some reason.

                TextField {
                    text: "test"
                    textStyle.textAlign: TextAlign.Right
                }

 That code is creating a simple textfield with the text aligned to the left on my setup.  This issue is killing me.