Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Set dynamic height of TableViewRow in a TableView depending of row content height

$
0
0

Currently, when I have a TableViewRow with Ti.UI.SIZE, the rows get set to the height of the row with the most content. I don't really understand the reason for this behaviour, but my issue is: each row has the same height, which looks awkward if I have more content in one row than the other. I want to individually set the height of a row so it fits to the content.

My attempt was to have a container View inside the TableViewRow set to Ti.UI.SIZE. When I try to get the container height after setting the data of the TableView, it returns 'size'. I hoped it would return a Number I could use to set the TableRowView height.

So if I have say label in my row, that breaks 2-3 times, producing a dynamic height and Ti.UI.SIZE never giving me the actual value, but just 'size' - how would I go from here?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>