{ "id": "83338", "key": "TIMOB-6437", "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": "2012-01-23T15:33:56.000+0000", "created": "2011-12-02T13:50:02.000+0000", "priority": { "name": "High", "id": "2" }, "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": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-01-23T15:33:56.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": "TableViewRow display does not refresh on property change. To refresh the row, you must cause the refresh yourself (i.e., scroll up and down a few times). This affects Rhino and V8 in 1.8.0.1. This does not happen in 1.7.5 or iOS.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run the following code in a new app.\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow();\r\nwin.backgroundColor = '#000099';\r\nvar data = [];\r\ndata[0] = Ti.UI.createTableViewRow({title:'Row 1',backgroundColor:'#900'});\r\ndata[1] = Ti.UI.createTableViewRow({title:'Row 2',backgroundColor:'#fff'});\r\ndata[2] = Ti.UI.createTableViewRow({title:'Row 3',backgroundColor:'#900'});\r\ndata[3] = Ti.UI.createTableViewRow({title:'Row 4',backgroundColor:'#fff'});\r\nvar tableview = Titanium.UI.createTableView({\r\n\tdata:data,\r\n\tbottom:30,\r\n\tleft:20,\r\n\tright:20,\r\n\theight:178,\r\n\tborderWidth:2,\r\n\tborderRadius:10,\r\n\tborderColor:'#222'});\r\ntableview.addEventListener('click', function(e){\r\n\tvar index = e.index;\r\n\tvar section = e.section;\r\n\tvar row = e.row;\r\n\tvar rowdata = e.rowData;\r\n\trow.hasCheck = true;\r\n\tvar color = '#' + String(Math.round(Math.random()*9)) + String(Math.round(Math.random()*9)) + String(Math.round(Math.random()*9));\r\n\trow.title = \"Color is now: \"+color;\r\n\trow.backgroundColor = color;});\r\nvar label = Titanium.UI.createLabel({\r\n\ttop:20,\r\n\tfont:{fontFamily:'Helvetica Neue',fontSize:20},\r\n\ttext:'Tableviews are cool',\r\n\tcolor:'#900',\r\n\tshadowColor:'#555',\r\n\tshadowOffset:{x:1,y:2},\r\n\ttextAlign:'center',\r\n\twidth:'auto',\r\n\theight:'auto'});\r\nwin.add(tableview);\r\nwin.add(label);\r\nwin.open();\r\n{code}\r\n\r\n2. Click on a row.\r\n\r\nExpected Result:\r\n\r\nRow should refresh with new properties (screenshot attached).\r\n\r\nActual Result:\r\n\r\nRow does not refresh, must be manually refreshed to display property changes.", "attachment": [ { "id": "24445", "filename": "android.png", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-02T13:50:02.000+0000", "size": 24755, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: TableViewRow display does not refresh on property change", "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.v20111201230657\r\nAndroid Runtimes: V8, Rhino\r\nStudio: 1.0.7.201112011810\r\nOS: OS X Lion\r\nDevices Tested: Android Emulator 2.2, NookColor, Galaxy Tab 10.1 3.1, Nexus 2.3.6", "comment": { "comments": [ { "id": "175001", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\nSDK Build: 1.8.0.1.v20111205164258\r\nOS: Mac OS X Lion\r\nRuntime: V8, Rhino\r\nDevices: Droid 2 (2.2.2), Nexus S (2.3.6), Galaxy Tab 10.1 (3.1), Android Emulator (4.0)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-12-06T10:34:41.000+0000", "updated": "2011-12-06T10:34:41.000+0000" }, { "id": "177989", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Added label qe-testadded.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-04T11:21:45.000+0000", "updated": "2012-01-04T11:21:45.000+0000" }, { "id": "180243", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "open to modify label", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-23T15:33:23.000+0000", "updated": "2012-01-23T15:33:23.000+0000" }, { "id": "180245", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test already exist in KS, does not need to be in modular test", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-23T15:33:56.000+0000", "updated": "2012-01-23T15:33:56.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }