Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-12658

Android: TableView row labels disappear, related to className property

    Details

      Description

      Problem description
      Labels added to TableView rows on Android seem to disappear/reappear when scrolling. With className commented, only one row ('Peaches') disappears, with className uncommented, only 'Peaches' appears.

      Test case

      var win = Titanium.UI.createWindow({
      	backgroundColor : '#fff'
      });
       
      var tableView = Ti.UI.createTableView({
      	width : '80%',
      	height : 100,
      	borderColor : 'black',
      	borderWidth : 1
      });
       
      win.add(tableView);
       
      var listOptions = [ 'Apple', 'Orange', 'Mango', 'Peaches', 'Guava', 'Banana', 'Cherry' ];
      var tableData = [];
       
      for (var i = 0; i < listOptions.length; i++) {
       
      	var row = Ti.UI.createTableViewRow({
      		width : '100%',
      		height : 40
      		//,
      		//className : 'drop_down_view_row'
      	});
       
      	var label = Ti.UI.createLabel({
      		left : '10dip',
      		width : '90%',
      		height : '90%',
      		text : listOptions[i],
      		color : 'black'
      	});
       
      	row.add(label);
      	tableData.push(row);
      }
       
      tableView.setData(tableData);
       
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ayeung Allen Yeung
                Reporter:
                dsefton Daniel Sefton
                Reviewer:
                Ping Wang
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-15600
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration