[AC-1722] Setting borderRadius on a button causes button content to disappear (Android Emulator)
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Resolved |
| Resolution | Cannot Reproduce |
| Resolution Date | 2015-08-26T04:19:52.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | TCSupportTriage, android |
| Reporter | Dawn |
| Assignee | Mostafizur Rahman |
| Created | 2014-09-10T18:35:44.000+0000 |
| Updated | 2016-03-08T07:38:13.000+0000 |
Description
When I add the button below to a window the title and background color disappear if I uncomment out the borderRadius.
I am testing on the default Android emulator that was set-up when I installed Titanium.
var blueButton = Titanium.UI.createButton({
title: 'Blue',
top: 160,
left: 25,
width: 100,
height: 50,
color: '#fff',
backgroundColor: '#009'
//borderColor: '#009',
//borderRadius: 5
});
win1.add(blueButton);
Hi, We tried to reproduce this issue with a sample test case. It’s not a valid bug, it’s working as expected.
TESTING ENVIRONMENT:
Ti SDK 3.2.3.GA and 3.3.0.GA Ti CLI 3.3.0 Mac OS X 10.9.3 Android 4.4.3TEST CODE:
var win1 = Titanium.UI.createWindow({ backgroundColor:'#fff' }); var blueButton = Titanium.UI.createButton({ title: 'Blue', top: 160, left: 25, width: 100, height: 50, color: '#fff', backgroundColor: '#009', borderColor: '#009', borderRadius: 5 }); win1.add(blueButton); win1.open();STEPS TO TEST:
- Create a simple project. - Update app.js with test code - Run on android emulator/deviceEXPECTED RESULT:
It’s working as expected. ThanksI am also reproduce this bug, but it reproduced only on Android 4.1+
Hello [~dgregg], Can you please take a look into the testcase? Are you still able to reproduce the issue with that testcode? Best Regards