{ "id": "87673", "key": "TIMOB-7952", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-05T16:26:32.000+0000", "created": "2012-03-09T16:32:42.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_label", "qe-testadded", "regression" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-04-05T16:26:32.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": "Label text does not redraw, when the text property is changed. \r\n\r\nThe user first creates a label, and then dynamically changes its text property, using label.text property.\r\n\r\nExpected behavior: The label property should change.\r\n\r\nActual Behavior: The label property does not change.\r\n\r\nThe code works for 1.8.2, but fails in the latest CI builds.(tested in 7th March, and 9th March)\r\n\r\n{noformat}\r\nvar win1 = Titanium.UI.createWindow({ \r\n backgroundColor:'white'\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n text: ''\r\n});\r\n\r\nwin1.add(label);\r\n\r\nsetTimeout(function(){\r\n label.text = \"show up\";\r\n Ti.API.info(label.text);\r\n}, 1000);\r\n\r\nwin1.open();\r\n\r\nvar label2 = Ti.UI.createLabel({\r\n text: 'asdadasd asdaj lsdak l',\r\n width: 'auto'\r\n});\r\n\r\nTi.API.info(\"label2 width: \" + label2.size.width);\r\n\r\n{noformat}\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS:Label does not redraw when text property is changed", "creator": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK:CI build 7th March, 9th March.\r\niOS SDK: 5.0", "comment": { "comments": [ { "id": "186683", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\n\r\nSDK: 2.0.0.v20120315140247\r\nStudio: 2.0.0.201203142055\r\nOS: Snow Leopard\r\nDevices Tested: iPhone Simulator 5.0, iPhone4 5.0.1\r\n\r\n{code:title=app.js}\r\nvar win1 = Titanium.UI.createWindow({ \r\n backgroundColor:'white'\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n text:'wait two seconds for label update'\r\n});\r\n\r\nwin1.add(label);\r\n\r\nsetTimeout(function(){\r\n label.text = \"label updated correctly\";\r\n Ti.API.info(label.text);\r\n}, 2000);\r\n\r\nwin1.open();\r\n{code}", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-15T13:59:21.000+0000", "updated": "2012-03-15T13:59:21.000+0000" }, { "id": "190099", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening/closing to add/remove label", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-05T16:26:08.000+0000", "updated": "2012-04-05T16:26:08.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }