Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1840] iOS: Tableview section header incorrect on orientation change on ipad

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-07-20T13:27:07.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsdefect, header, ios, ipad, section, tableview
Reporterctredway
AssigneeNeeraj Gupta
Created2011-04-15T03:03:40.000+0000
Updated2017-03-09T22:18:34.000+0000

Description

When a table view has sections and has been scrolled the wrong section header is shown after an orientation change happens. If the table view is a grouped tableview, this does not happen.

Code below:
var win = Titanium.UI.currentWindow

var inputData = [

{title:'row 1', header:'Header 1'},
{title:'row 2'},
{title:'row 3'},
{title:'row 4'},
{title:'row 5'},
{title:'row 6'},
{title:'row 7', header:'Header 2'},
{title:'row 8'},
{title:'row 9'},
{title:'row 10'},
{title:'row 11'},
{title:'row 12'},
{title:'row 13'},
{title:'row 14'},
{title:'row 15'},
{title:'row 16', header:'Header 3'},
{title:'row 17'},
{title:'row 18'},
{title:'row 19'},
{title:'row 20'},
{title:'row 21'},
{title:'row 22'},
{title:'row 23'},
{title:'row 24'},
{title:'row 25', header:'Header 4'},
{title:'row 26'},
{title:'row 27'},
{title:'row 28'},
{title:'row 29'},
{title:'row 30'},
{title:'row 31'},
{title:'row 32'},
{title:'row 33'}

]; var tableView = Titanium.UI.createTableView({

data:inputData

}); win.add(tableView);

Comments

  1. Neeraj Gupta 2012-07-20

    Does not reproduce with release 2.1.0.
  2. Lee Morris 2017-03-09

    Closing ticket as the issue cannot be reproduced.

JSON Source