{ "id": "62840", "key": "TIMOB-2208", "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": "11239", "name": "Release 1.6.0 M06", "archived": true, "released": true, "releaseDate": "2011-01-24" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:25.000+0000", "created": "2011-04-15T03:13:32.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "android_refactor", "backgroundcolor", "defect", "regression", "release-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:25.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": "{html}

On the 1.5.0 build from today, creating a row with\n.backgroundColor set works properly, however changing\n.backgroundColor on the fly (e.g. after the row has been created\nand rendered) fails. Works on iOS and Android under 1.4.1.

{html}", "attachment": [], "flagged": false, "summary": "android regression: row.background dynamic changing fails", "creator": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127820", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Robby,

\n

Would you mind checking against 1_4_X branch to see if it\nregressed after that?

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:33.000+0000", "updated": "2011-04-15T03:13:33.000+0000" }, { "id": "127821", "author": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Don,

\n

Works on the 1_4_X nightly from Oct 15th at least. I can try a\nnewer one if you need.

{html}", "updateAuthor": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:33.000+0000", "updated": "2011-04-15T03:13:33.000+0000" }, { "id": "127822", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Perfect! Thanks.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:33.000+0000", "updated": "2011-04-15T03:13:33.000+0000" }, { "id": "127823", "author": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Currently I am having to do a setData([]), followed by a\nsetData(rowData) to properly see the updated colors. Less than\noptimal, but it should prove that it is a redraw issue or some\nsort.

{html}", "updateAuthor": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:34.000+0000", "updated": "2011-04-15T03:13:34.000+0000" }, { "id": "127824", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Robby. Please provide the information from the version.txt file\nin the mobilesdk so we know which build you're testing with.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:34.000+0000", "updated": "2011-04-15T03:13:34.000+0000" }, { "id": "127825", "author": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Don, please see my comment for #2430,\nwhich includes that information along with a working testcase for\nthis bug.

{html}", "updateAuthor": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:34.000+0000", "updated": "2011-04-15T03:13:34.000+0000" }, { "id": "127826", "author": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Looks like this may affect the iOS 1.5.1 release as well. Having\nthe same kind of issues there changing it dynamically on a\ntableview row. Scrolling the row out and back in view redraws it\nwith the proper backgroundColor.

{html}", "updateAuthor": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:34.000+0000", "updated": "2011-04-15T03:13:34.000+0000" }, { "id": "127827", "author": { "name": "chrisreed", "key": "chrisreed", "displayName": "Chris Reed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hi there, in case it helps.

\n

I've noticed the same issue in iOS with some labels properties,\nwhen added to a tableview row:

\n

Changing label.text works, but with label.width set to 'auto',\nthe width doesn't change with the new text length - Until the row\nis pushed out of view.

\n

(I'm certain this was OK in 1.4.3, first saw it in 1.5.0\nRC2)

\n

I recorded details and some sample code in Helpdesk:
\nhttps://developer.appcelerator.com/helpdesk/view/63151

{html}", "updateAuthor": { "name": "chrisreed", "key": "chrisreed", "displayName": "Chris Reed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:35.000+0000", "updated": "2011-04-15T03:13:35.000+0000" }, { "id": "127828", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This was fixed in this commit:
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/ced322fc0662...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:35.000+0000", "updated": "2011-04-15T03:13:35.000+0000" }, { "id": "127829", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

test i used to verify this fix:

\n
\n\nvar row = Ti.UI.createTableViewRow({ backgroundColor: 'blue' });\nvar data = [ row ];\nvar table = Ti.UI.createTableView({\n    data: data,\n    height: '80%'\n});\nwin.add(table);\n\nvar button = Ti.UI.createButton({\n    title: 'change bg',\n    top: '85%'\n});\nwin.add(button);\nbutton.addEventListener(\"click\", function(e) {\n    row.backgroundColor = \"red\";\n});\n
{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:35.000+0000", "updated": "2011-04-15T03:13:35.000+0000" }, { "id": "127830", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

Verified but needed to set the table view height to a manual\nheight value in order to run test.

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:13:36.000+0000", "updated": "2011-04-15T03:13:36.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }