3 Nov 2011 6:20 PM #1
Unanswered: Text Field - Aligning text with right alignment for a number type content
I would like to do the same thing in GXT as the per the ExtJS instructions
TextField<String> field = new TextField<String>();
But it does not work. Please help.
4 Nov 2011 2:44 AM #2
Take a look at the output with Firebug. You will see that you assign the text align to the wrong element. You need to assign it to the input element. You are assigning it to the wrapping div.
21 Apr 2012 4:43 AM #3
Thanks for the reply.
I am able to make the field right aligned by using this code.
2 Feb 2013 12:39 PM #4
try with this .setInputStyleAttribute("text-align", "right");