{ "id": "121272", "key": "TIMOB-15502", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-11-20T19:24:06.000+0000", "created": "2013-10-16T11:03:41.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "supportTeam", "triage" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T23:02:50.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": "When we set the hightlightedColor property on labels that are inside table view rows (the table's allowSelection property is true), and navigate away from the window, the hightlightedColor does not show until the row is scrolled out of view and back again.\r\n\r\n*Steps to reproduce*\r\n\r\n1: Use the below sample code with newly created sample project.\r\n2: Build the sample project for iOS7 simulator.\r\n3: Click on any row and come back to main window.\r\n4: *Label Highlighted color is not shown*.\r\n5: Now scroll the view out of visible portion and take back.\r\n6: Label Highlighted color is shown.\r\n\r\n*Sample code*\r\n{code}\r\nvar tbG = Ti.UI.createTabGroup({\r\n\ttintColor : \"green\",\r\n\tbarColor : \"yellow\"\r\n\t///backgroundColor:\"yellow\"\r\n});\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n\tbackgroundColor : \"gray\",\r\n\ttintColor : \"red\"\r\n});\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n\tbackgroundColor : \"yellow\"\r\n});\r\n\r\nvar tb1 = Ti.UI.createTab({\r\n\ttitle : \"tab1\",\r\n\twindow : win1,\r\n\ttintColor : \"blue\"\r\n});\r\n\r\nvar tb2 = Ti.UI.createTab({\r\n\ttitle : \"tab2\",\r\n\twindow : win2\r\n});\r\n\r\nfunction openanotherWindowNow() {\r\n\tvar win3 = Ti.UI.createWindow({\r\n\t\tbackgroundColor : \"green\"\r\n\t});\r\n\r\n\ttb1.open(win3);\r\n}\r\n\r\n// Create a TableView.\r\nvar testTable = Ti.UI.createTableView({\r\n\tallowsSelection : true\r\n});\r\n\r\nvar lable1 = Ti.UI.createLabel({\r\n\ttext : \"value 1\",\r\n\thighlightedColor : \"yellow\"\r\n});\r\nvar lable2 = Ti.UI.createLabel({\r\n\ttext : \"value 2\",\r\n\thighlightedColor : \"green\"\r\n});\r\n\r\nvar tbRow = Ti.UI.createTableViewRow();\r\ntbRow.add(lable1);\r\ntbRow.add(lable2);\r\n\r\n// 2\r\n\r\nvar lable11 = Ti.UI.createLabel({\r\n\ttop : 5,\r\n\ttext : \"value 1\",\r\n\thighlightedColor : \"yellow\"\r\n});\r\nvar lable21 = Ti.UI.createLabel({\r\n\ttop : 25,\r\n\ttext : \"value 2\",\r\n\thighlightedColor : \"green\"\r\n});\r\n\r\nvar tbRow1 = Ti.UI.createTableViewRow({\r\n\tselectedBackgroundColor : \"blue\",\r\n\theight : 50\r\n});\r\ntbRow1.add(lable11);\r\ntbRow1.add(lable21);\r\n\r\n//3\r\n\r\nvar lable111 = Ti.UI.createLabel({\r\n\ttext : \"value 1\",\r\n\thighlightedColor : \"yellow\"\r\n});\r\nvar lable211 = Ti.UI.createLabel({\r\n\ttext : \"value 2\",\r\n\thighlightedColor : \"green\"\r\n});\r\n\r\nvar tbRow11 = Ti.UI.createTableViewRow({\r\n\theight : 50,\r\n\tlayout : \"vertical\",\r\n\t//selectedColor:\"blue\",\r\n\t//selectionStyle:Titanium.UI.iPhone.TableViewCellSelectionStyle.BLUE,\r\n\tselectedBackgroundColor : \"blue\",\r\n\t//backgroundSelectedColor:\"blue\"\r\n});\r\ntbRow11.add(lable111);\r\ntbRow11.add(lable211);\r\n\r\ntestTable.setData([tbRow, tbRow1, tbRow11]);\r\n\r\n// Listen for click events.\r\ntestTable.addEventListener('click', function(e) {\r\n\topenanotherWindowNow();\r\n});\r\n\r\n// Add to the parent view.\r\nwin1.add(testTable);\r\n\r\ntbG.tabs = [tb1, tb2];\r\n\r\ntbG.open();\r\n\r\n{code}", "attachment": [ { "id": "43338", "filename": "1-MainScreen.png", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-21T16:38:07.000+0000", "size": 30194, "mimeType": "image/png" }, { "id": "43339", "filename": "2-NewWindow.png", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-21T16:38:07.000+0000", "size": 18982, "mimeType": "image/png" }, { "id": "43340", "filename": "3-MainScreenAfterBack.png", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-21T16:38:07.000+0000", "size": 29979, "mimeType": "image/png" }, { "id": "43341", "filename": "4-MainScreenAfterScroll.png", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-21T16:38:07.000+0000", "size": 30351, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Labels in TableView lose their highlight color when navigating away from the window", "creator": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium Mobile SDK 3.1.2, 3.1.3\r\niOS7", "comment": { "comments": [ { "id": "275961", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "Attaching screenshots", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-21T16:38:07.000+0000", "updated": "2013-10-21T16:38:07.000+0000" }, { "id": "280381", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "See TIMOB-13499. The behavior is against IOS HIG and my cause app rejection.\r\nYou should always deselect any selected rows when coming back to the screen.\r\n\r\nSee TableView section in https://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/MobileHIG.pdf ", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-20T19:24:07.000+0000", "updated": "2013-11-20T19:24:07.000+0000" }, { "id": "415201", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\".", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T23:02:50.000+0000", "updated": "2017-03-22T23:02:50.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }