[AC-1581] TableView's separator has left padding
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2014-05-14T18:23:23.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Ivan Skugor |
Assignee | Ritu Agrawal |
Created | 2014-05-13T15:51:54.000+0000 |
Updated | 2016-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.
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
Hi Ritu. That worked. Thanks for your help.
Great! Let us know if you run into any other issues.