I now agree with you, however, I placed the code out of context. In fact the code I posted is called from a sub which contains the preceding code...
eName.InputType=eName.INPUT_TYPE_TEXT
and it is that which is causing the problem, which disappears when it is commented out. The problem can also be solved by removing the Gravity, which is what threw me.
So unless I have really got into a twist the problem exists, caused by something else but cured either way.
[EDIT]I also notice that using Gravity as shown the text is centred horizontally but is above centre vertically.