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

How to set different row hight which is dynamically loaded

$
0
0

I guys I have situation, where I am loading table rows dynamically. The code that set table row is like:

var rows = [];
    _.each(records, function(rec) {
            var row = Alloy.createController('myRow', rec).getView();
            rows.push(row);
        });
    }
 
    $.myaTable.setData(rows);
I have different value in each row. And I want to set row height to fit the texts. I tried to set the row height
"TableViewRow": {
        height: Ti.UI.SIZE
    }
I also changed the myRow.js like $.myRow.height = Ti.UI.SIZE.

But the problem - it is applying same height of to all rows. I show below in image:

Current Output:

The Out put

My need is:

My need

Do you think any solutions exists in Titanium for this. Thanks in advance


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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