{ "id": "119387", "key": "TIMOB-15030", "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": "15646", "description": "2013 Sprint 18", "name": "2013 Sprint 18", "archived": true, "released": true, "releaseDate": "2013-09-06" }, { "id": "15690", "description": "2013 Sprint 18 API", "name": "2013 Sprint 18 API", "archived": true, "released": true, "releaseDate": "2013-09-06" } ], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2013-11-07T17:06:00.000+0000", "created": "2013-09-03T15:06:31.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios7", "supportTeam", "triage" ], "versions": [], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-07T17:06:00.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.Problem\r\nJunk is observed on TableView rows objects containing labels. \r\n\r\nAttached are the screen shots of the issue. Attached two Screen shots for iOS 6 and iOS 7.\r\n\r\nh6.Sample code\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n\tbackgroundColor : '#fff'\r\n});\r\n\r\nvar table = Ti.UI.createTableView({\r\n\ttop : 0\r\n});\r\nvar rows = [];\r\nvar noteDetailArr = [{\r\n\ttitle : '\\n Group Collaborated With: This is test group\\nPerson Consulted With: This person is added for testing in this note\\n******************************************************\\nSummary - Latest synopsis of investigation\\n******************************************************\\nSummary for test\\n******************************************************\\nEvidence - Logs, outputs, errors\\n******************************************************\\nEvidence for test\\n******************************************************\\nTimetable - Action plan and ownership\\n******************************************************\\nTime table for test'\r\n}, {\r\n\ttitle : '\\n******************************************************\\nTimetable - Action plan and ownership\\n******************************************************\\nGhxg shut'\r\n}, {\r\n\ttitle : 'Test'\r\n}, {\r\n\ttitle : '\\n******************************************************\\nTimetable - Action plan and ownership\\n******************************************************\\nxcfb fcg s\\nSetting Next Customer Contact Time to 08-30-2013 10:30:00 EST, if this is unacceptable please let me know.'\r\n}, {\r\n\ttitle : '\\nContact Method: Email\\nContact Name: Lsnsdj sfd\\nNumber/Address Used: 2155 456465\\n******************************************************\\nTimetable - Action plan and ownership\\n******************************************************\\nsfglkns sdfigvasi dva va\\nSetting Next Customer Contact Time to 08-30-2013 06:00:00 EST, if this is unacceptable please let me know.'\r\n}, {\r\n\ttitle : '******************************************************\\nSummary - Latest synopsis of investigation\\n******************************************************\\nVvbuic if hug\\n******************************************************\\nEvidence - Logs, outputs, errors\\n******************************************************\\nICUs Yogyakarta fyggygovvyvyg\\n******************************************************\\nTimetable - Action plan and ownership\\n******************************************************\\nJvvtg thigh\\nSetting Next Customer Contact Time to 09-03-2013 05:08:21 EST, if this is unacceptable please let me know.'\r\n}, {\r\n\ttitle : '\\n******************************************************\\nSummary - Latest synopsis of investigation\\n******************************************************\\ngfd\\n ******************************************************\\nTimetable - Action plan and ownership ******************************************************\\ngjgkdfgdklgdfgjdljglk\\nSetting Next Customer Contact Time to 09-04-2013 05:30:00 EST, if this is unacceptable please let me know.'\r\n}];\r\nvar tableFooterView = Ti.UI.createView({\r\n\theight : 20,\r\n\ttouchEnabled : false,\r\n\tallowsSelection : false,\r\n\tborderWidth : 0,\r\n\tborderColor : 'transparent'\r\n});\r\n\r\nfor (var i = 0; i < noteDetailArr.length; i++) {\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\tbackgroundColor : \"#FFF\",\r\n\t\theight : 96,\r\n\t\thasChild : true\r\n\t});\r\n\tvar noteTypeLabel = Ti.UI.createLabel({\r\n\t\thighlightedColor : '#FFF',\r\n\t\ttop : 22,\r\n\t\tleft : 10,\r\n\t\ttextAlign : \"left\",\r\n\t\theight : 21,\r\n\t\tfont : {\r\n\t\t\tfontSize : 14,\r\n\t\t\tfontWeight : \"bold\"\r\n\t\t},\r\n\t\tcolor : '#000'\r\n\r\n\t});\r\n\tvar noteDateLabel = Ti.UI.createLabel({\r\n\t\thighlightedColor : '#FFF',\r\n\t\ttop : 3,\r\n\t\tright : 0,\r\n\t\ttextAlign : \"right\",\r\n\t\theight : 17,\r\n\t\tminimumFontSize : 11,\r\n\t\tfont : {\r\n\t\t\tfontSize : 13,\r\n\t\t\tfontWeight : \"bold\"\r\n\t\t},\r\n\t\tcolor : '#2A4164'\r\n\t});\r\n\tvar noteDetailLabel = Ti.UI.createLabel({\r\n\t\thighlightedColor : '#FFF',\r\n\t\ttop : 43,\r\n\t\tleft : 10,\r\n\t\tright : 5,\r\n\t\theight : 32,\r\n\t\tfont : {\r\n\t\t\tfontSize : 13,\r\n\t\t\tfontWeight : \"normal\"\r\n\t\t},\r\n\t\tcolor : \"#808080\"\r\n\t});\r\n\tvar userNameLabel = Ti.UI.createLabel({\r\n\t\thighlightedColor : '#FFF',\r\n\t\ttop : 76,\r\n\t\tleft : 10,\r\n\t\theight : 16,\r\n\t\ttextAlign : \"left\",\r\n\t\tcolor : \"#AAA\",\r\n\t\tfont : {\r\n\t\t\tfontSize : 12\r\n\t\t}\r\n\t});\r\n\tvar noteContextLabel = Ti.UI.createLabel({\r\n\t\thighlightedColor : '#FFF',\r\n\t\ttop : 76,\r\n\t\tright : 5,\r\n\t\theight : 16,\r\n\t\ttextAlign : \"right\",\r\n\t\tcolor : \"#AAA\",\r\n\t\tfont : {\r\n\t\t\tfontSize : 12\r\n\t\t}\r\n\t});\r\n\r\n\tvar _noteType = 'Action Plan' + i;\r\n\tvar _noteDate = '23/08/2013';\r\n\r\n\tnoteTypeLabel.text = _noteType;\r\n\r\n\tnoteDateLabel.time = '12:15 PM';\r\n\tnoteDateLabel.text = _noteDate;\r\n\r\n\tnoteDetailLabel.text = noteDetailArr[i].title;\r\n\r\n\tuserNameLabel.text = 'Test User';\r\n\r\n\trow.backgroundColor = '#DEE9F4';\r\n\r\n\tuserNameLabel.color = \"#2A4164\";\r\n\r\n\tnoteContextLabel.color = \"#2A4164\";\r\n\r\n\trow.add(noteTypeLabel);\r\n\trow.add(noteDateLabel);\r\n\trow.add(noteDetailLabel);\r\n\trow.add(userNameLabel);\r\n\tvar noteContext = \"External Note\";\r\n\tnoteContextLabel.text = noteContext;\r\n\r\n\trow.add(noteContextLabel);\r\n\trows.push(row);\r\n}\r\n\r\ntable.backgroundColor = 'transparent';\r\ntable.footerView = tableFooterView;\r\n\r\n// Add all the notes to the table\r\ntable.setData(rows);\r\ntable.allowsSelection = true;\r\n\r\nwin.add(table);\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "42075", "filename": "iOS6.1.3_JunkChar.PNG", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-03T15:06:31.000+0000", "size": 67952, "mimeType": "image/png" }, { "id": "42076", "filename": "iOS7_Beta6_JunkChar.PNG", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-03T15:06:31.000+0000", "size": 68638, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS7: Junk Data observed in TableView rows containing labels", "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 & 3.2 CI\r\niOS 7 (BETA 6)", "comment": { "comments": [ { "id": "269581", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is not our bug but an apple rendering issue on IOS7.\r\nFor some reason apple does not like label texts to begin with a newline character. The junk data we are seeing is actually from the third line of the content.\r\n\r\nAdding a leading space to the text before the newline character seems to fix the issue.\r\n\r\nTry this\r\n{code}\r\nvar noteDetailArr = [{\r\n title : ' \\n Group Collaborated With: This is test group\\nPerson Consulted With: This person is added for testing in this note\\n******************************************************\\nSummary - Latest synopsis of investigation\\n******************************************************\\nSummary for test\\n******************************************************\\nEvidence - Logs, outputs, errors\\n******************************************************\\nEvidence for test\\n******************************************************\\nTimetable - Action plan and ownership\\n******************************************************\\nTime table for test'\r\n}, {\r\n title : ' \\n******************************************************\\nTimetable - Action plan and ownership\\n******************************************************\\nGhxg shut'\r\n}, {\r\n title : 'Test'\r\n}, {\r\n title : ' \\n******************************************************\\nTimetable - Action plan and ownership\\n******************************************************\\nxcfb fcg s\\nSetting Next Customer Contact Time to 08-30-2013 10:30:00 EST, if this is unacceptable please let me know.'\r\n}, {\r\n title : ' \\nContact Method: Email\\nContact Name: Lsnsdj sfd\\nNumber/Address Used: 2155 456465\\n******************************************************\\nTimetable - Action plan and ownership\\n******************************************************\\nsfglkns sdfigvasi dva va\\nSetting Next Customer Contact Time to 08-30-2013 06:00:00 EST, if this is unacceptable please let me know.'\r\n}, {\r\n title : '******************************************************\\nSummary - Latest synopsis of investigation\\n******************************************************\\nVvbuic if hug\\n******************************************************\\nEvidence - Logs, outputs, errors\\n******************************************************\\nICUs Yogyakarta fyggygovvyvyg\\n******************************************************\\nTimetable - Action plan and ownership\\n******************************************************\\nJvvtg thigh\\nSetting Next Customer Contact Time to 09-03-2013 05:08:21 EST, if this is unacceptable please let me know.'\r\n}, {\r\n title : ' \\n******************************************************\\nSummary - Latest synopsis of investigation\\n******************************************************\\ngfd\\n ******************************************************\\nTimetable - Action plan and ownership ******************************************************\\ngjgkdfgdklgdfgjdljglk\\nSetting Next Customer Contact Time to 09-04-2013 05:30:00 EST, if this is unacceptable please let me know.'\r\n}];\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-04T21:11:38.000+0000", "updated": "2013-09-04T21:11:38.000+0000" }, { "id": "271393", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing per comments. ", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-16T23:00:06.000+0000", "updated": "2013-09-16T23:00:06.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }