align text vertically in a label
The title says it all, this should be easy but I can't seem to find any attribute that will place the text at the top of a 300px high label, it just sits right in the middle. Thanks!
4 Answers
-
Why not just use height: 'auto'? That should produce the same behavior. Are you placing another view inside the label?
-
This is context of a tablerow. I had set the label to be height auto but as the table scrolled the label in question would randomly place itself over other labels. I guess the bigger question I'm trying to answer is this: How do I have three labels stack on top of each other in a table row and all three expand to fit their contents without overlapping. I believe I tried "auto" on all three and got terrible results.
-
Nick's suggestion is correct.
I can confirm that setting height:'auto' on the label will align the text vertically. Worked for me on 1.5.1 -
it worked for me too.
height:'auto'