Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1722] Setting borderRadius on a button causes button content to disappear (Android Emulator)

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2015-08-26T04:19:52.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
LabelsTCSupportTriage, android
ReporterDawn
AssigneeMostafizur Rahman
Created2014-09-10T18:35:44.000+0000
Updated2016-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);

Comments

  1. Harish Mridha 2014-09-11

    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.3

    TEST 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/device

    EXPECTED RESULT:

    It’s working as expected. Thanks
  2. Xardas 2014-09-27

    I am also reproduce this bug, but it reproduced only on Android 4.1+
  3. Mauro Parra-Miranda 2014-09-29

    Hello [~dgregg], Can you please take a look into the testcase? Are you still able to reproduce the issue with that testcode? Best Regards

JSON Source