Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1581] TableView's separator has left padding

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2014-05-14T18:23:23.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterIvan Skugor
AssigneeRitu Agrawal
Created2014-05-13T15:51:54.000+0000
Updated2016-03-08T07:38:03.000+0000

Description

To see this issue run this code:
var win = Titanium.UI.createWindow({
    
});

var tableView = Ti.UI.createTableView({
    top: 40,
    bottom: 0
});

var rows = [];
for (var i = 0; i < 10; ++i) {
    rows.push(Ti.UI.createTableViewRow({
        title: 'Row ' + (i + 1)
    }));
}

tableView.setData(rows);

win.add(tableView);

win.open();
You should be able to see that separator between rows has padding.

Comments

  1. Ritu Agrawal 2014-05-13

    The leading whitespace is provided by default in iOS 7, even for custom cells. http://stackoverflow.com/questions/19499366/white-space-before-separator-line-into-my-tableview You may want to use separatorInsets to control the separator padding. http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.TableView-property-separatorInsets
  2. Ivan Skugor 2014-05-14

    Hi Ritu. That worked. Thanks for your help.
  3. Ritu Agrawal 2014-05-14

    Great! Let us know if you run into any other issues.

JSON Source