{ "id": "79403", "key": "TIMOB-5648", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-08-19T07:14:42.000+0000", "created": "2011-08-18T02:21:05.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "akulinich", "key": "akulinich", "displayName": "Andrew Kulinich", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T20:43:23.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "Property selectedBackgroundImage works incorrect in tableViewRow. selectedBackgroundImage stays as backgroundImage after deselecting the row.\r\nExample:\r\n{code:JavaScript}\r\n\r\nvar win = Titanium.UI.currentWindow;\r\nwin.backgroundImage = '../images/tableview/brown_bg_482.png';\r\n\r\n\r\n// data for tableview\r\nvar data = [\r\n\r\n\t{title:'Play Movie',backgroundImage:'../images/tableview/off_1.png', color:'black', font:{fontSize:16,fontWeight:'bold'},\r\n\t\t\tselectedBackgroundImage:'../images/tableview/on_1.png'},\r\n\r\n\t{title:'Camera',backgroundImage:'../images/tableview/off_2.png',color:'black', font:{fontSize:16,fontWeight:'bold'},\r\n\t\t\tselectedBackgroundImage:'../images/tableview/on_2.png'},\r\n\r\n\t{title:'Vibrate',backgroundImage:'../images/tableview/off_3.png',color:'black', font:{fontSize:16,fontWeight:'bold'},\r\n\t\t\tselectedBackgroundImage:'../images/tableview/on_3.png'},\r\n\r\n\t{title:'Orientation',backgroundImage:'../images/tableview/off_4.png',color:'black', font:{fontSize:16,fontWeight:'bold'},\r\n\t\tselectedBackgroundImage:'../images/tableview/on_4.png'},\r\n\r\n\t{title:'Photo Gallery',backgroundImage:'../images/tableview/off_1.png',color:'black', font:{fontSize:16,fontWeight:'bold'},\r\n\t\t\tselectedBackgroundImage:'../images/tableview/on_1.png'},\r\n\r\n\t{title:'Geo Location',backgroundImage:'../images/tableview/off_2.png',color:'black', font:{fontSize:16,fontWeight:'bold'},\r\n\t\t\tselectedBackgroundImage:'../images/tableview/on_2.png'},\r\n\r\n\t{title:'Accelerometer',backgroundImage:'../images/tableview/off_3.png',color:'black', font:{fontSize:16,fontWeight:'bold'},\r\n\t\t\tselectedBackgroundImage:'../images/tableview/on_3.png'},\r\n\r\n\t{title:'Sound',backgroundImage:'../images/tableview/off_4.png',color:'black', font:{fontSize:16,fontWeight:'bold'},\r\n\t\t\tselectedBackgroundImage:'../images/tableview/on_4.png'},\r\n\r\n\t{title:'Shake',backgroundImage:'../images/tableview/off_1.png',color:'black', font:{fontSize:16,fontWeight:'bold'},\r\n\t\t\tselectedBackgroundImage:'../images/tableview/on_1.png'},\r\n\r\n\t{title:'Email Client',backgroundImage:'../images/tableview/off_2.png',color:'black', font:{fontSize:16,fontWeight:'bold'},\r\n\t\t\tselectedBackgroundImage:'../images/tableview/on_2.png'},\r\n\r\n\t{title:'Save to Gallery',backgroundImage:'../images/tableview/off_3.png',color:'black', font:{fontSize:16,fontWeight:'bold'},\r\n\t\t\tselectedBackgroundImage:'../images/tableview/on_3.png'},\r\n\r\n\t{title:'Contacts',backgroundImage:'../images/tableview/off_4.png',color:'black', font:{fontSize:16,fontWeight:'bold'},\r\n\t\t\t selectedBackgroundImage:'../images/tableview/on_4.png'}\r\n];\r\n\r\n// tableview object\r\nvar tableView = Titanium.UI.createTableView({\r\n\tbackgroundColor:'transparent',\r\n\tdata:data,\r\n\tseparatorStyle:Ti.UI.iPhone.TableViewSeparatorStyle.NONE,\r\n\ttop:10,\r\n\twidth: 400,\r\n});\r\n\r\nvar wrapperView = Titanium.UI.createView({backgroundColor:'transparent',width:300});\r\n\r\nwrapperView.add(tableView);\r\nwin.add(wrapperView);\r\n\r\n//win.add(tableView);\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: Property selectedBackgroundImage works incorrect in tableViewRow", "creator": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "subtasks": [], "reporter": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "environment": null, "comment": { "comments": [ { "id": "410460", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T20:43:23.000+0000", "updated": "2017-03-09T20:43:23.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }