Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15638] iOS7: TableView row separator lines don't extend all the way to the left edge of the screen on iOS7

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2016-10-01T18:31:36.000+0000
Affected Version/sRelease 3.1.3
Fix Version/sn/a
ComponentsiOS
LabelsSupportTeam
ReporterGordon Illan
AssigneeEric Merriman
Created2013-10-17T22:01:57.000+0000
Updated2017-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

FileDateSize
iOS Simulator Screen shot Oct 20, 2013 3.57.37 PM.png2013-10-20T10:12:59.000+000013766
iOS Simulator Screen shot Oct 20, 2013 3.59.15 PM.png2013-10-20T10:12:59.000+000027445

Comments

  1. Shameer Jan 2014-09-04

    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
  2. Hans Knöchel 2016-10-01

    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 the Ti.UI.TableView and listSeparatorInsets: {left: 0} for the Ti.UI.ListView.
  3. Lee Morris 2017-03-23

    Closing ticket as invalid with reference to the previous comments.

JSON Source