{ "id": "101927", "key": "TIMOB-11102", "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": "14621", "description": "2012 Sprint 23 API", "name": "2012 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2012-11-19" }, { "id": "14623", "description": "2012 Sprint 23 JS", "name": "2012 Sprint 23", "archived": true, "released": true, "releaseDate": "2012-11-19" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-11-06T20:24:46.000+0000", "created": "2012-09-25T09:36:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-ios090112" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:44:40.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": "TableView created with index/indexes misalign the text in a row.\r\nThis is not regression since the issue occurs in 2.1.1 GA also.\r\n\r\nSteps to reproduce:\r\n1. Create an app using the code below.\r\n2. launch the app.\r\n\r\nActual:\r\nThe text in the first row is misaligned. The text is shifted to the right by 2 characters.\r\n\r\nExpected:\r\nThe text should be properly aligned.\r\n\r\n{code}\r\n\r\nvar _window=Ti.UI.createWindow({\r\n    backgroundColor:'white'\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\n        var 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\n        row1.add(label1);\r\n         \r\n        var row2 = Ti.UI.createTableViewRow({\r\n            // height:'auto',  \r\n            height:Ti.UI.SIZE\r\n        });\r\n        var 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\n        row2.add(label2);\r\n         \r\n         \r\n        var 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\n        _window.add(table);\r\n        _window.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: TableView - TableView created with index/indexes misaligns the text in a row.", "creator": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 2.1.3.v20120921141611\r\nStudio:2.1.2.201208301612\r\nDevices: iPad2(v 5.1), iPad simulator\r\nOS:OSX 10.8.1", "comment": { "comments": [ { "id": "226342", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Labels have no horizontal pins so are centered horizontally in parent.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-11-06T20:24:46.000+0000", "updated": "2012-11-06T20:24:46.000+0000" }, { "id": "251267", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As per Vishal Duggal's comment, this behavior is due to the absence of horizontal pins. Thus, closing the issue. ", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-10T10:40:21.000+0000", "updated": "2013-05-10T10:40:21.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }