{ "id": "89947", "key": "TIMOB-8709", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13405", "description": "Sprint 2012-09 API", "name": "Sprint 2012-09 API", "archived": true, "released": true, "releaseDate": "2012-05-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-10T04:31:50.000+0000", "created": "2012-04-12T16:46:07.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api", "module_tableview", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2012-07-11T11:01:47.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": "h2. Problem description\r\nSetting an index property for the tableView could break text tableRow layout\r\n\r\nh2. Steps to reproduce\r\n- Create a tableView with tableRows including different sized text (see code sample)\r\n- Set the 'index' property for the tabelView (see code sample)\r\nResult: some text might not be displayed as expected\r\n\r\nAttached two screenshots, using 'index:[{index:0,title:'a'},{index:1,title:'b'}]' or not.\r\n\r\n\r\n{code:lang=javascript}\r\nvar win = Ti.UI.createWindow();\r\nwin.open();\r\n\r\n\r\nvar row1 = Ti.UI.createTableViewRow({\r\n // height:'auto', \r\n height:Ti.UI.SIZE\r\n\r\n});\r\nvar label1 = Ti.UI.createLabel({\r\n // height:'auto',\r\n top:0,\r\n height:Ti.UI.SIZE,\r\n text:'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'\r\n});\r\n\r\nrow1.add(label1);\r\n\r\nvar row2 = Ti.UI.createTableViewRow({\r\n // height:'auto', \r\n height:Ti.UI.SIZE\r\n});\r\nvar label2 = Ti.UI.createLabel({\r\n // height:'auto', \r\n height:Ti.UI.SIZE,\r\n top:0,\r\n text:'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'\r\n});\r\n\r\nrow2.add(label2);\r\n\r\n\r\nvar table = Ti.UI.createTableView({\r\n index:[{index:0,title:'a'},{index:1,title:'b'}],\r\n data:[row1,row2]\r\n});\r\n\r\nwin.add(table);\r\n\r\n{code}\r\n\r\n\r\nh2. Additional notes\r\nCustomer ticket: http://support-admin.appcelerator.com/display/APP-276887", "attachment": [ { "id": "27012", "filename": "INDEX.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-12T16:46:07.000+0000", "size": 47268, "mimeType": "image/png" }, { "id": "27013", "filename": "noINDEX.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-12T16:46:07.000+0000", "size": 62339, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: tableView 'index' property breaks tableRow layout", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS SDK 5\r\nTiSDK 1.8.2 and 2.1", "comment": { "comments": [ { "id": "199506", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.1.0.201206200844\r\nTi Mobile SDK 2.1.0.v20120619172256 hash rd3a84b13\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.1\r\n\r\nThe expected behavior is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-20T19:04:38.000+0000", "updated": "2012-06-20T19:04:38.000+0000" }, { "id": "202321", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-10T04:31:24.000+0000", "updated": "2012-07-10T04:31:24.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }