[TIMOB-11868] MobileWeb: Background Color and BackgroundSelectedColor of a button do not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-04-04T00:39:27.000+0000 |
Affected Version/s | Release 2.1.3, Release 2.1.4 |
Fix Version/s | Release 3.1.0, 2012 Sprint 25, 2012 Sprint 25 JS, 2013 Sprint 07 JS, 2013 Sprint 07, Release 3.2.0 |
Components | MobileWeb |
Labels | n/a |
Reporter | Amuktha Akkinepally |
Assignee | Christian Sullivan |
Created | 2012-11-27T22:47:37.000+0000 |
Updated | 2013-05-10T09:46:12.000+0000 |
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.
Ti.UI.backgroundColor = 'blue';
var win = Ti.UI.createWindow();
var btn = Titanium.UI.createButton({
title : "test",
height : 100,
width : 200,
backgroundColor : 'green',
backgroundSelectedColor : 'red',
});
win.add(btn);
win.open();
Pull Request https://github.com/appcelerator/titanium_mobile/pull/3517
This issue still present. In 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. Titanium Studio, build: 3.0.2.201302191606 Titanium Studio, build: 3.0.2.GA Titanium Studio, build: 3.1.0.v20130227145654 Mac osx 10.8.2 Mountain Lion Chrome 24.0.13 Safari 6.0.2
[MASTER] Pull Request https://github.com/appcelerator/titanium_mobile/pull/4056
[3_1_X] Pull Request https://github.com/appcelerator/titanium_mobile/pull/4075
color is changed on the click on mobileweb preview in browser. Verified using: SDK: 3.1.1.v20130509173053 CLI version : 3.1.0 OS : MAC OSX 10.7.5 Appcelerator Studio, build: 3.1.0.201305092424 XCode : 4.5.1