[TIMOB-15638] iOS7: TableView row separator lines don't extend all the way to the left edge of the screen on iOS7
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2016-10-01T18:31:36.000+0000 |
Affected Version/s | Release 3.1.3 |
Fix Version/s | n/a |
Components | iOS |
Labels | SupportTeam |
Reporter | Gordon Illan |
Assignee | Eric Merriman |
Created | 2013-10-17T22:01:57.000+0000 |
Updated | 2017-03-23T21:32:19.000+0000 |
Description
Problem Description
On iOS 7, the TableView row separator lines don't extend all the way to the left edge of the screen. iOS has a property on UITableView to set the "separator inset." This property is not exposed in Titanium. Please expose it or implicitly set it to zero for backward compatibility.Test case
var win = Ti.UI.createWindow({
backgroundColor : '#fff',
});
var aTableView = Ti.UI.createTableView();
var data = [{
title : 'Row 1',
hasChild : true,
color : 'red',
header : 'First'
}, {
title : 'Row 2',
hasDetail : true,
color : 'green'
}, {
title : 'Row 3',
hasCheck : true,
color : 'blue',
header : 'Second'
}, {
title : 'Row 4',
color : 'orange'
}];
aTableView.setData(data);
win.add(aTableView);
win.open();
Attachments
File | Date | Size |
---|---|---|
iOS Simulator Screen shot Oct 20, 2013 3.57.37 PM.png | 2013-10-20T10:12:59.000+0000 | 13766 |
iOS Simulator Screen shot Oct 20, 2013 3.59.15 PM.png | 2013-10-20T10:12:59.000+0000 | 27445 |
Issue reproduces with 3.1.3 and 3.4.0 GA Titanium Command-Line Interface, CLI version 3.3.0, Titanium SDK version 3.4.0.GA iOS SDK: 7.0 iOS iPhone Simulator: 7.0
This is the native behavior in iOS 7 and later. If you want to extend the separators to the left edge, use
tableSeparatorInsets: {left: 0}
for theTi.UI.TableView
andlistSeparatorInsets: {left: 0}
for theTi.UI.ListView
.Closing ticket as invalid with reference to the previous comments.