{ "id": "105584", "key": "TIMOB-11868", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14700", "description": "2012 Sprint 25", "name": "2012 Sprint 25", "archived": true, "released": true, "releaseDate": "2012-12-17" }, { "id": "14785", "description": "2012 Sprint 25 JS", "name": "2012 Sprint 25 JS", "archived": true, "released": true, "releaseDate": "2012-12-17" }, { "id": "15398", "description": "2013 Sprint 07 JS", "name": "2013 Sprint 07 JS", "archived": true, "released": true, "releaseDate": "2013-04-08" }, { "id": "15105", "description": "2013 Sprint 07", "name": "2013 Sprint 07", "archived": true, "released": true, "releaseDate": "2013-04-08" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-04-04T00:39:27.000+0000", "created": "2012-11-27T22:47:37.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" } ], "issuelinks": [], "assignee": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-05-10T09:46:12.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": "When a button's Background Color is set it only stays for the first click after that click it just becomes white even if the backgroundSelectedColor is specified. It works fine on Android.\r\n{code}\r\nTi.UI.backgroundColor = 'blue';\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar btn = Titanium.UI.createButton({\r\n\ttitle : \"test\",\r\n\theight : 100,\r\n\twidth : 200,\r\n\tbackgroundColor : 'green',\r\n\tbackgroundSelectedColor : 'red',\r\n});\r\n\r\nwin.add(btn);\r\n\r\nwin.open();\r\n\r\n\r\n{code}\r\n\r\nh4.Steps to reproduce:\r\n1. Load the app.js \r\n2. Run the app in the mobile web preview in Browser\r\n3. Once the page is loaded, The button is green\r\n4. Click on the button.\r\n5. It loses green color and never takes black color (backgroundSelectedColor)\r\n6. Now try running it on the android emulator\r\n\r\nExpected Result: It should show up the black color when clicked on it. like on Android. \r\n\r\nActual Result: It does not behave similar to android. \r\n\r\nIf the background color is only supposed to work this way (only stay till the first click), then there should not be a backgroundColor property for buttons on mobileWeb similar to iOS. \r\n\r\n", "attachment": [], "flagged": false, "summary": "MobileWeb: Background Color and BackgroundSelectedColor of a button do not work", "creator": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK:2.1.3 GA, 2.1.4 GA\r\nChrome Browser: Version 23.0.1271.91\r\nSafari: Version 6.0 (8536.25)\r\nFirefox: 16.0.2", "comment": { "comments": [ { "id": "229778", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request https://github.com/appcelerator/titanium_mobile/pull/3517", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T03:39:16.000+0000", "updated": "2012-12-04T03:39:16.000+0000" }, { "id": "240256", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue still present.\nIn master the button does not change color at all, it set green and stays green. It is impossible to see, if a button is clicked.\n\nTitanium Studio, build: 3.0.2.201302191606\nTitanium Studio, build: 3.0.2.GA\nTitanium Studio, build: 3.1.0.v20130227145654\nMac osx 10.8.2 Mountain Lion\nChrome 24.0.13\nSafari 6.0.2", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-28T21:42:35.000+0000", "updated": "2013-02-28T21:42:35.000+0000" }, { "id": "244636", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[MASTER] Pull Request https://github.com/appcelerator/titanium_mobile/pull/4056", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-29T06:00:58.000+0000", "updated": "2013-03-29T06:00:58.000+0000" }, { "id": "245673", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[3_1_X] Pull Request https://github.com/appcelerator/titanium_mobile/pull/4075", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-04T05:55:51.000+0000", "updated": "2013-04-04T05:55:51.000+0000" }, { "id": "251262", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "color is changed on the click on mobileweb preview in browser.\r\n\r\nVerified using:\r\nSDK: 3.1.1.v20130509173053\r\nCLI version : 3.1.0\r\nOS : MAC OSX 10.7.5\r\nAppcelerator Studio, build: 3.1.0.201305092424\r\nXCode : 4.5.1", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-05-10T09:46:12.000+0000", "updated": "2013-05-10T09:46:12.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }