{ "id": "83315", "key": "TIMOB-6427", "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": [ { "id": "12088", "description": "", "name": "Sprint 2011-48", "archived": true, "released": true, "releaseDate": "2011-12-05" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-12-02T16:54:04.000+0000", "created": "2011-12-01T17:06:13.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "branch-v8", "regression" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-12-05T15:10:01.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Ti.UI.TableView incorrectly orders row elements and fails to display header property (when assigned after initialization) in all Android SDKs using TiMobile 1.8.0.1. In contrast, iOS (1.8.0.1) and all Android SDKs running 1.7.5 do not exhibit this behavior. Logs and screenshots attached.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run code in new app. Use Android 1.8.0.1.\r\n\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win = Titanium.UI.createWindow({ title:'Win',backgroundColor:'#fff'});\r\nvar data = [];\r\ndata[0] = Ti.UI.createTableViewRow({hasChild:true,title:'Header should be Foo',header:'Foo'});\r\ndata[1] = Ti.UI.createTableViewRow({hasDetail:true,title:'Row 2'});\r\ndata[2] = Ti.UI.createTableViewRow({hasCheck:true,title:'Header should be Bar',header:'Bar'});\r\ndata[3] = Ti.UI.createTableViewRow({title:'Footer should be Bye',footer:'Bye'});\r\ndata[4] = Ti.UI.createTableViewRow();\r\ndata[4].header = \"Blah\";\r\ndata[4].title = \"Header should be Blah\";\r\nvar tableview = Titanium.UI.createTableView({data:data});\r\nwin.add(tableview);\r\nwin.open();\r\n{code}\r\n\r\nExpected Result:\r\n\r\nRows should display in order. All rows with an explicit header should display the header.\r\n\r\nActual Result:\r\n\r\nRows are out of order. Rows with headers assigned after initialization do not display header.", "attachment": [ { "id": "24435", "filename": "android 1.7.5.png", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-01T17:06:13.000+0000", "size": 22760, "mimeType": "image/png" }, { "id": "24434", "filename": "android 1.8.0.png", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-01T17:06:13.000+0000", "size": 15206, "mimeType": "image/png" }, { "id": "24436", "filename": "iOS.png", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-01T17:06:13.000+0000", "size": 36219, "mimeType": "image/png" }, { "id": "24437", "filename": "log.txt", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-01T17:06:13.000+0000", "size": 1043, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: Ti.UI.TableView incorrectly orders row elements and fails to display post-initialization header properties", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 1.8.0.1.v20111201134256\r\nAndroid Runtimes: V8, Rhino\r\nStudio: 1.0.7.201111302035\r\nOS: OS X Lion\r\nDevices Tested: NookColor, Android Tab 3.1, Android Emulator 2.2", "comment": { "comments": [ { "id": "174771", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated priority to note why it should have been chosen to be fixed.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-04T10:24:00.000+0000", "updated": "2011-12-04T10:24:00.000+0000" }, { "id": "174933", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bug fixed. Verified on:\r\nSDK: 1.8.0.1.v20111205011857\r\nRuntimes: Android V8/Rhino\r\nStudio: 1.0.7.201112041107\r\nOS: OS X Lion\r\nDevices Tested: Nexus One 2.2.2, Droid3 2.3.4, Slate 3.1, Emulator 4.0", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-05T15:10:01.000+0000", "updated": "2011-12-05T15:10:01.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }