{ "id": "119590", "key": "TIMOB-15067", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-09-06T18:03:38.000+0000", "created": "2013-09-06T15:17:43.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios7", "supportTeam", "triage" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [ { "id": "31618", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "119398", "key": "TIMOB-15032", "fields": { "summary": "iOS7: Table View - Headers with Filter - index causes unexpected layout issue", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-17T17:58:52.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": "h6.Issue\r\nAn application similar to Contacts, where we display a view with multiple contacts. \r\n\r\nOn iOS7, the letters in the 'quick access bar' on the right side are too tightly placed for the user to interact with and drag with ease. (To preview the issue please refer to attachment A.png)\r\n\r\nSince the default Apple standard is something similar to what is attached in B.png, where as you would notice, all the 26 alphabets from A to Z plus the symbol '#' is provided even if there is just one or two or three sections in the table. \r\n\r\nMain issue is that the letters that appear are too tightly coupled and would like to have a fix for the same.\r\n\r\nh6.Snippet\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : '#ffffff',\r\n\ttitle : \"Testing\",\r\n\tlayout : 'vertical',\r\n});\r\n\r\nvar _data = [];\r\nvar _index = [];\r\n\r\nvar tableViewData = ['a', 'b', 'c', 'd', 'e', 'f', 'm', 'y', 'x', 'z'];\r\nvar lastLetter = tableViewData[0].substr(0, 1);\r\n\r\nfor (var i = 0, len = tableViewData.length; i < len; i++) {\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\theight : 50,\r\n\t\theader : tableViewData[i],\r\n\t\trowIndex : i,\r\n\t});\r\n\r\n\tvar labelDetails = Ti.UI.createLabel({\r\n\t\tcolor : '#222',\r\n\t\ttext : tableViewData[i],\r\n\t\tleft : 70,\r\n\t\ttop : 4,\r\n\t\twidth : 360\r\n\t});\r\n\trow.add(labelDetails);\r\n\r\n\t_data.push(row);\r\n\t_index.push({\r\n\t\ttitle : tableViewData[i],\r\n\t\tindex : i\r\n\t});\r\n}\r\n\r\nvar table = Ti.UI.createTableView({\r\n\tfilterAttribute : 'mainText',\r\n\tselectedIndex : -1,\r\n\tindex : _index,\r\n});\r\n\r\ntable.setData(_data);\r\nwin.add(table);\r\nwin.open(); \r\n{code}", "attachment": [ { "id": "42332", "filename": "1-1.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-09T21:13:30.000+0000", "size": 25746, "mimeType": "image/png" }, { "id": "42333", "filename": "1-2.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-09T21:13:30.000+0000", "size": 19690, "mimeType": "image/png" }, { "id": "42215", "filename": "A.PNG", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-06T15:17:43.000+0000", "size": 20760, "mimeType": "image/png" }, { "id": "42216", "filename": "B.PNG", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-06T15:17:43.000+0000", "size": 34366, "mimeType": "image/png" }, { "id": "42218", "filename": "iOS7-SDK3.1.3.png", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-09-06T16:53:33.000+0000", "size": 30573, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS7: Issue in Table View Style with respect to quick access bar", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.1.2.GA \r\niOS 7 - Beta 6", "comment": { "comments": [ { "id": "269962", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "Attached screenshot of test with SDK 3.1.3", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-09-06T16:53:33.000+0000", "updated": "2013-09-06T16:53:33.000+0000" }, { "id": "269980", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Apple only allows us to specify the index titles and the sections they correspond to. How they are rendered on the screen is completely up to the OS and that has changed in IOS7. That being said if you really want more spacing in your indexTitles, there is nothing stopping you from adding an empty title. Something like this\r\n{code}\r\nfunction isiOS7Plus()\r\n{\r\n // add iphone specific tests\r\n if (Titanium.Platform.name == 'iPhone OS')\r\n {\r\n var version = Titanium.Platform.version.split(\".\");\r\n var major = parseInt(version[0],10);\r\n \r\n // can only test this support on a 3.2+ device\r\n if (major >= 7)\r\n {\r\n return true;\r\n }\r\n }\r\n return false;\r\n \r\n}\r\n \r\nvar isIOS7 = isiOS7Plus();\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : '#ffffff',\r\n title : \"Testing\",\r\n layout : 'vertical',\r\n orientationModes:[Ti.UI.PORTRAIT,Ti.UI.LANDSCAPE_LEFT,Ti.UI.LANDSCAPE_RIGHT]\r\n});\r\n \r\nvar _data = [];\r\nvar _index = [];\r\n \r\nvar tableViewData = ['a', 'b', 'c', 'd', 'e', 'f', 'm', 'y', 'x', 'z'];\r\nvar lastLetter = tableViewData[0].substr(0, 1);\r\n \r\nfor (var i = 0, len = tableViewData.length; i < len; i++) {\r\n var row = Ti.UI.createTableViewRow({\r\n height : 50,\r\n header : tableViewData[i],\r\n rowIndex : i,\r\n });\r\n \r\n var labelDetails = Ti.UI.createLabel({\r\n color : '#222',\r\n text : tableViewData[i],\r\n left : 70,\r\n top : 4,\r\n width : 360\r\n });\r\n row.add(labelDetails);\r\n \r\n _data.push(row);\r\n _index.push({\r\n title : tableViewData[i],\r\n index : i\r\n });\r\n if (isIOS7) {\r\n _index.push({\r\n title : ' ',\r\n index : i\r\n });\r\n }\r\n}\r\n \r\nvar table = Ti.UI.createTableView({\r\n filterAttribute : 'mainText',\r\n selectedIndex : -1,\r\n index : _index,\r\n});\r\n \r\ntable.setData(_data);\r\nwin.add(table);\r\nwin.open(); \r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-06T18:03:38.000+0000", "updated": "2013-09-06T18:03:38.000+0000" }, { "id": "413512", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T17:58:52.000+0000", "updated": "2017-03-17T17:58:52.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }