How can I set the row height in a Sencha Touch List object?
I’m using HTML to format the row, rows get taller with multiple lines, but how do I set the row height?
Thanks,
Gerry
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To edit the List elements default height, you have two ways to do it:
In the first case you only need to edit the $global-row-height variable value like, for example.
If you want to override the CSS class directly with an additional CSS file, you can do it adding a new rule just like this:
If you want to set the list Height of a single list you have to set your css class in this way:
and add the cls config param to your list definition like this
You can also use the list config property itemHeight,like this:
However, I always suggest to learn SASS. It’s really easy and it really worth learning.
Hope this helps.