{ "id": "63157", "key": "TIMOB-2525", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-07-20T15:19:44.000+0000", "created": "2011-04-15T03:21:57.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "19065", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T22:18:41.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Hi,
\nI didn't try on iOS devices but only on the iPad, but I have a\nrendering problem with the following snippet :

\n

There is a similar titled issue \nhttps://appcelerator.lighthouseapp.com/projects/32238-titanium-mobi...\nbut I runned the given snippet and it doesn't seems related to the\nissue I encounter.

\n

Is is a bug or a bad usage of the APIs ?

\n

NB: the rendering behavior is correct if you comment the line\n\"tableSection.headerView = customHeader;\"

\n

function createCustomTableSection() {

\n
\nvar tableSection = Titanium.UI.createTableViewSection({\n    headerTitle: 'Monday 05 July 2010'\n});\n\nvar customHeader = Titanium.UI.createView({\n    height: 45,\n    backgroundImage: 'table_section_bg.png'\n});\nvar dateLabel = Titanium.UI.createLabel({\n    text:'Monday 05 July 2010',\n    color:'#b4d0ee',\n    top: 5,\n    left: 5\n});\ncustomHeader.add(dateLabel);\ntableSection.headerView = customHeader;\n\ntableSection.add(Titanium.UI.createTableViewRow({title:'Monday 05 July 2010'}));\ntableSection.add(Titanium.UI.createTableViewRow({title:'Tuesday 06 July 2010'}));\ntableSection.add(Titanium.UI.createTableViewRow({title:'Wednesday 07 July 2010'}));\ntableSection.add(Titanium.UI.createTableViewRow({title:'Thursday 08 July 2010'}));\nreturn tableSection;\n
\n

}

\n

Titanium.UI.setBackgroundColor('#000');

\n

var win = Titanium.UI.createWindow();

\n

// Create header var header = Titanium.UI.createView({

\n
\nbackgroundImage: 'home_header.png',\ntop: 0,\nheight: 43\n
\n

});

\n

var l = Titanium.UI.createLabel({

\n
\ntext: 'Plenary sessions',\ncolor: 'white',\nfont:{fontSize: 18},\nheight: 'auto',\nright: 'auto',\ntop: 5,\nleft: 10,\nwidth: 150\n
\n

});

\n

header.add(l);
\nwin.add(header);

\n

var sections = [];
\nfor (var i = 0; i < 8; i++) {

\n
\nsections[i] = createCustomTableSection();\n
\n

}

\n

var tableView = Titanium.UI.createTableView();
\ntableView.setData(sections);

\n

win.add(tableView);
\nwin.open();

{html}", "attachment": [], "flagged": false, "summary": "TableView using TableSection with custom headerView rendering iPad", "creator": { "name": "jérémyr", "key": "jérémyr", "displayName": "Jérémy R", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jérémyr", "key": "jérémyr", "displayName": "Jérémy R", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "208799", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Does not reproduce with release 2.1.0.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-20T23:59:39.000+0000", "updated": "2012-07-20T23:59:39.000+0000" }, { "id": "410805", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T22:18:41.000+0000", "updated": "2017-03-09T22:18:41.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }