{ "id": "99647", "key": "TIMOB-10570", "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": null, "resolutiondate": null, "created": "2012-08-23T07:09:26.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "qe-ios082012" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:07.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "On iOS, Setting background image of TableViewRow as null or empty does not empty it always instead would show the image of earlier emptied row.\r\n\r\nThis is not a regression. The issue occurs as far as 2.0.1\r\n\r\nSteps to Reproduce:\r\n1. Create application with code below and launch the application\r\n2. Click on Row1. BackgroundImage for Row 1 gets set\r\n3. Click on Row2. BackgroundImage for Row 2 gets set\r\n4. Again click on Row1. BackgroundImage for Row 1 gets empty\r\n5. Again click on Row2.\r\n\r\nActual: After Step 5: The row 2 shows the BackgroundImage that was set for Row 1.\r\n\r\nExpected: After Step 5: The row 2 should get empty\r\n\r\n{code}\r\nvar _window=Ti.UI.createWindow();\r\n_window.backgroundColor='black';\r\n \r\nvar TheListBox=Ti.UI.createTableView();\r\nTi.UI.createTableView({width:'auto'});\r\n\r\nvar BIRow=Titanium.UI.createTableViewRow({\r\n\tcolor:'red',\r\n\tbackgroundColor:\"transparent\",\r\n\ttitle:'No background image...click to toggle'\r\n });\r\n \r\n \r\nvar BIRow2=Ti.UI.createTableViewRow({\r\n\tcolor:'red',\r\n\tbackgroundColor:\"transparent\",\r\n\ttitle:'No background image...click to toggle'\r\n });\r\n \r\n \r\nBIRow.addEventListener('click',function()\r\n//function ToggleBI()\r\n{\r\n if (!BIRow.backgroundImage)\r\n {\r\n BIRow.backgroundImage='appicon.png';\r\n BIRow.title='Titanium background image...click to toggle';\r\n \r\n alert('row 1 set');\r\n }\r\n else \r\n {\r\n //BIRow.backgroundImage=null; \r\n BIRow.backgroundImage=''; \r\n BIRow.title='No background image...click to toggle';\r\n alert('row 1 unset');\r\n }\r\n});\r\n\r\nBIRow2.addEventListener('click',function()\r\n//function ToggleBI2()\r\n{\r\n if (!BIRow2.backgroundImage)\r\n {\r\n BIRow2.backgroundImage='KS_nav_ui.png';\r\n BIRow2.title='Titanium background image...click to toggle';\r\n alert('row 2 set');\r\n }\r\n else \r\n {\r\n BIRow2.backgroundImage=null; \r\n //BIRow2.backgroundImage=''; \r\n BIRow2.title='No background image...click to toggle';\r\n alert('row 2 unset');\r\n }\r\n});\r\n\r\nTheListBox.appendRow(BIRow);\r\nTheListBox.appendRow(BIRow2);\r\n_window.add(TheListBox); \r\n_window.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: TableViewRow: Setting background image of TableViewRow as null or empty does not empty it always", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.2.201208201549\r\nTitanium SDK: 2.1.2.v20120821160113\r\nDevice: iPad3(v5.1), iPhone Simulator (v5.1)", "comment": { "comments": [ { "id": "244254", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \niOS iPhone Simulator: iOS SDK version: 6.0\n\n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-27T08:39:07.000+0000", "updated": "2013-03-27T08:39:07.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }