Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15438] iOS7: SectionIndexTitles overlaps SearchBar column in TableView

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2013-10-09T17:47:39.000+0000
Affected Version/sRelease 3.1.3
Fix Version/sn/a
ComponentsiOS
Labelsindex, searchbar, tableview, triage
ReporterMeenakshi Pathak
AssigneeIngo Muschenetz
Created2013-10-09T07:15:41.000+0000
Updated2017-03-21T18:52:14.000+0000

Description

SearchBar in a tableView overlaps with the index column in iOS7. Here is the test case :
var win = Ti.UI.createWindow();

var searchBar = Ti.UI.createSearchBar();
var indexData = [{title: 'A', index: 0}, {title: 'C', index: 3},{title: 'F', index: 16},{title: 'G', index: 18}];

var table = Ti.UI.createTableView({
    search:searchBar,
    });

var _data = [
{title:'Action Plan',header : 'A'},
{title:'Administrative'},
{title:'Analyze Performance'},
{title:'CCA Approval/Planning',header : 'C'},
{title:'Code Upgrade'},
{title:'Collaboration'},
{title:'Collaboration Initiated'},
{title:'Conf Call'},
{title:'Configuration/Bin Building'},
{title:'Consult'},
{title:'Corrective Maintenance'},
{title:'Customer Contacted'},
{title:'Data Migration'},
{title:'Disk Cloning Appliance'},
{title:'Dispatch Avoided'},
{title:'Escalation'},
{title:'FCO Notes',header : 'F'},
{title:'Failure Analysis'},
{title:'Field Service Update'},
{title:'Geo Turnover',header : 'G'},
{title:'Health Check'},
{title:'Incorrect Customer Info'},
{title:'Initial Response'},
{title:'Install/Upgrade'},
{title:'Next Action'},
{title:'Set Update'},
{title:'Update From Customer'}
];
var arr = [];

for(var i=0; i < _data.length; i++){
    var row = Ti.UI.createTableViewRow({title:_data[i].title,header:_data[i].header});
    arr.push(row);
}
table.setData(arr);
table.index=indexData;

win.add(table);
win.open();

Please find attachment of the screenshots of Titanium and native behavior in iOS7.

Attachments

FileDateSize
index native.png2013-10-09T07:19:32.000+000028609
index overlap.png2013-10-09T07:15:41.000+000040517

Comments

  1. Ingo Muschenetz 2013-10-09

    This is a duplicate of TIMOB-15438.
  2. Lee Morris 2017-03-21

    Closing ticket as duplicate.

JSON Source