{ "id": "63431", "key": "TIMOB-2799", "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-26T14:09:24.000+0000", "created": "2011-04-15T03:29:49.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "19304", "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": "2012-07-26T20:40:21.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}

I have a tableView that contains a label visible and a hidden\nbutton. When I swipe the row it should reduces the width of the\nlabel for the button to display. This works perfectly with SDK\n1.4.3 but not with 1.5.1.
\nI attach source code that proves the above:

\n
\nvar tableView = Titanium.UI.createTableView();\nvar rows = [];\nvar row = Titanium.UI.createTableViewRow();\n\nvar label1 = Titanium.UI.createLabel({\n    text:'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse adipiscing.',\n    width:300,\n    font:{fontSize:12,fontFamily:'Helvetica Neue'},\n});\nrow.add(label1);\n\nvar b1 = Ti.UI.createButton({\n    title:'button',\n    height:30,\n    width:90,\n    right:10,\n    visible: false\n});\nrow.add(b1);\n\nvar swiped = '';\nrow.addEventListener('swipe', function (e) {swiped = e.direction;});\nrow.addEventListener('touchend', function (e) {\n    if (swiped == 'left'){\n        label1.width = 200;\n        b1.show();\n    }\n});\n\nrows.push(row);\n\ntableView.setData(rows);\nTitanium.UI.currentWindow.add(tableView);\n
{html}", "attachment": [], "flagged": false, "summary": "iPhone: Change label width on swipe", "creator": { "name": "aarmenta", "key": "aarmenta", "displayName": "aarmenta", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aarmenta", "key": "aarmenta", "displayName": "aarmenta", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "209758", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested against SDK 2.2.0.014b86f, iPhone Sim 5.1. Cannot reproduce as described (button appears so assume it \"works perfectly\").", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T14:09:24.000+0000", "updated": "2012-07-26T14:09:24.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }