Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12084] Android: leftImage inside TableViewRow doesn't allow padding

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-01-31T23:05:27.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterDavide Cassenti
AssigneeSunila
Created2012-12-13T16:32:34.000+0000
Updated2013-03-13T18:58:27.000+0000

Description

Problem description

Adding a leftImage to a TableViewRow does not allow to add a padding, and the text looks too near to the image. Using the 'left' property doesn't look good either while scrolling.

Steps to reproduce

Use the following code to reproduce the issue:

// Create a window
var win = Ti.UI.createWindow({
	backgroundColor : 'white'
});

var rows = [];
function addRow() {
    var row = Ti.UI.createTableViewRow({
        leftImage: 'image.png',
        height: 400,
        title: "Row " + rows.length,
        left: 200,
        className: 'test'
    });
    
    rows.push(row);
}

for (var i=0; i<30; i++)
    addRow();

var table = Ti.UI.createTableView({
    data: rows
});

win.add(table);
win.open();
Running the app, the text is not 200px from the left of the image; however, while scrolling the text is placed correctly most of the times.

Comments

  1. Vishal Duggal 2013-01-31

    Can not reproduce this in 3_0_X CI or master CI. Might have gotten fixed with the other table view fixes we have done. Either ways the way the code is written, it will never work on iOS
  2. Shyam Bhadauria 2013-03-04

    Since this bug is reproducible with only SDK 2.1.4 on devices Android 2.x and Android 4.1 and is not reproducing with 3.0.0.GA and later 3.1.x(3.1.0.v20130228214607) builds so closing it.

JSON Source