What actually happens on the iphone is that on the side it aligns along the border instead of the textfield.
but at top it moves the textfield up the same size as the border.
In this case border is set to 10 pixels so it actually moves the textfield 10 pixels to the left but at the top it moves it upwards 10 pixels.