TextField format when has no border

Why textField when has no border shows the value several pixels up?
image

Surely that is because the control is the same size but has no borders.

Sure!, but how do you center the text on the no border text field?

I would try reducing the height by 2 pixels and moving it down by 1 pixel. On the assumption that the border is 1 pixel wide. If it is more adjust accordingly.