[TIMOB-1405] Vertical layout fails inside a TableViewRow on Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2011-04-15T02:51:23.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M09 |
Components | Android |
Labels | android, defect, layout, release-1.6.0, tableview, vertical |
Reporter | Oscar Merida |
Assignee | Don Thorp |
Created | 2011-04-15T02:51:22.000+0000 |
Updated | 2017-03-03T05:55:47.000+0000 |
Description
I'm trying to create a tableview row with a vertival layout that has 2 text labels. On Android, the labels display on top of each other. If i create an interior view with a vertical layout and add the labels to this view, it looks as expected.
var row = Ti.UI.createTableViewRow({
hasChild: true,
height: 'auto',
left:0,
right:65,
layout: 'vertical',
backgroundColor:'transparent',
});
var titleLabel = Ti.UI.createLabel({
left: 0,
font: {fontSize:11, fontWeight:'bold'},
color: '#fff',
height: 'auto',
width: 'auto',
backgroundColor:'transparent',
text: "Title title title title",
});
row.add(titleLabel);
var subtitleLabel = Ti.UI.createLabel({
left:0,
font:{fontSize:11},
color:'#ccc',
height: 'auto',
width: 'auto',
backgroundColor:'#0f0',
text: "Subtitle. Subtitle. Subtitle. Subtitle."
});
row.add(subtitleLabel)
Assigning to Don for triage.
duplicate to #3081 already marked fixed there so making this one the duplicate.
Closing issue due to time passed and irrelevance of the ticket.