{ "id": "117303", "key": "ALOY-751", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15571", "description": "2013 Sprint 15", "name": "2013 Sprint 15", "archived": true, "released": true, "releaseDate": "2013-07-29" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-07-18T18:57:33.000+0000", "created": "2013-07-17T19:00:33.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "15402", "description": "Alloy 1.2.0, concurrent with SDK 3.1.0", "name": "Alloy 1.2.0", "archived": false, "released": true, "releaseDate": "2013-08-15" } ], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-07-22T17:57:58.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": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" }, { "id": "13603", "name": "Styling", "description": "TSS, dynamic styling, styling API" } ], "description": "h5. Problem description\r\nUsing Dynamic Styling, not all styles properties seems to be correctly removed on Android when using $.removeClass unless they have a value and is different from null\r\n\r\nh5. Steps to reproduce\r\n1. Run https://github.com/appcelerator/alloy/tree/master/test/apps/advanced/dynamic_styling on Android emulator or device\r\n\r\n2. Check the 'Add/Remove Classes' example. \r\n\r\nResult: class styles are correctly added to 'test label 1', however when removing them, the 'backgroundColor' and 'borderRadius' properties from the '.redbg' class are still applied ('color' property, also defined in the .redbg class, is correctly removed) \r\n\r\nOn iOS it works as expected.\r\n\r\n3. Modify the '.medium' class included in 'classes.tss', changing backgroundColor value from null to something else and adding a borderRadius value different from null\r\nex:\r\n{code}\r\n'.medium': {\r\n\tfont: {\r\n\t\tfontSize: '24dp',\r\n\t\tfontWeight: 'bold'\r\n\t},\r\n\tbackgroundColor: 'orange',\r\n\tborderRadius:0,\r\n\theight: null,\r\n\twidth: null\r\n}\r\n{code}\r\n\r\nResult: in this case it works as expected - when removing the class, backgroundColor is back to 'orange' value and borderRadius is back to '0'. Note that height and weight values behave correctly also if set to null.", "attachment": [], "flagged": false, "summary": "Android: some Style properties are not removed using $.removeClass", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.1.2.v20130710144553\r\nAppcelerator Studio 3.1.2.201307101037\r\nAlloy 1.2.0", "comment": { "comments": [ { "id": "262354", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I cannot reproduce. I think you probably pulled a version of Alloy while I was in the process of resolving ALOY-717. Try your same exact steps as listed and you should see that it behaves as expected on both Android and iOS. Re-open the ticket if you still encounter the issue, otherwise please confirm it as closed.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-18T18:57:33.000+0000", "updated": "2013-07-18T18:57:33.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }