If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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

Web and WebWorks Development

Reply
Contributor
sunwebsite
Posts: 43
Registered: ‎09-09-2011
My Device: 9900
My Carrier: airtel

Blackberry OS 5 Text Field Right Align Not Working

I written a code for arabic input field, which the user should enter right to left. BB6.0 and above is working fine, but BB5.0 device and simulator is not working with the right alignment in text field.

 

here is the code...

 

<body style="direction:rtl">
	<input type="number" style="text-align:right; direction:rtl;" maxlength="9" id="username" name="username" />
</body>

 Please suggest me to solve this issue.

Please use plain text.
Developer
ignites
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900
My Carrier: Rogers

Re: Blackberry OS 5 Text Field Right Align Not Working

i dont have a solution but i believe text-align right is not an html5 supported standard and the default/standard positioning of text in an input box is left-aligned


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Please use plain text.
Contributor
sunwebsite
Posts: 43
Registered: ‎09-09-2011
My Device: 9900
My Carrier: airtel

Re: Blackberry OS 5 Text Field Right Align Not Working

I could not find the solution yet. I need a urgent solution on this. Can anybody help me.

Please use plain text.
Trusted Contributor
Himanshu_berry
Posts: 138
Registered: ‎04-19-2012
My Device: No
My Carrier: Nokia

Re: Blackberry OS 5 Text Field Right Align Not Working

hi 

use TextFiedl tf = new TextField(DrawStyle.RIGHT);

chek it.

Please use plain text.
Contributor
sunwebsite
Posts: 43
Registered: ‎09-09-2011
My Device: 9900
My Carrier: airtel

Re: Blackberry OS 5 Text Field Right Align Not Working

I looking for webworks development. How can I add this code in javascript.

Please use plain text.
Administrator
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Blackberry OS 5 Text Field Right Align Not Working

I'm sorry I don't have a workaround for you to offer.  

 

Unless someone else has had any success with this, I believe this is an unfortunate limitation of the OS 5.0 browser engine.

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.