Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1405] Vertical layout fails inside a TableViewRow on Android

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionDuplicate
Resolution Date2011-04-15T02:51:23.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M09
ComponentsAndroid
Labelsandroid, defect, layout, release-1.6.0, tableview, vertical
ReporterOscar Merida
AssigneeDon Thorp
Created2011-04-15T02:51:22.000+0000
Updated2017-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)

Comments

  1. Stephen Tramer 2011-04-15

    Assigning to Don for triage.

  2. Don Thorp 2011-04-15

    duplicate to #3081 already marked fixed there so making this one the duplicate.

  3. Lee Morris 2017-03-03

    Closing issue due to time passed and irrelevance of the ticket.

JSON Source