How to justify text in a TextInput vertically
So I have a simple question: how can you justify text in a TextInput vertically?
So I have a simple question: how can you justify text in a TextInput vertically?
ah ha. well. i thought i answered all permutations of your question, but i just covered permutations of what you might have meant by 'textInput', and not what you might have meant by 'justify'. So when talking about text, justify is commonly known to mean to line up the left and right margins of the textfield. to illustrate, i've 'justified' this text box. but if its centring the text vertically that you wanted to do, i don't think this is possible with the textInput component.
The closest I can come up with in the TextInput styles is 'textPadding' which provides padding between the text and the border of the component.
I think you'd be better off, if you really did need the TextInput component to look 48 pixels tall, would be to use a regular TextInput component(22 pixels high) without a border(either through skinning or styling), and then position the component where you would like it, and draw the border yourself.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.