Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24847] Windows: borderRadius does not work with text values

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-07-05T20:45:16.000+0000
Affected Version/sRelease 6.1.0
Fix Version/sRelease 6.2.0
ComponentsWindows
Labelsn/a
ReporterGary Mathews
AssigneeKota Iguchi
Created2017-06-19T11:29:35.000+0000
Updated2017-08-09T18:22:52.000+0000

Description

- Defining a borderRadius with a text value such as 3dp causes an unexpected exception
var win = Ti.UI.createWindow(),
    lbl = Ti.UI.createLabel({
        text: 'TEST',
        borderRadius: '3dp', // this causes a crash
        borderWidth: '1dp'
    });

win.add(lbl);
win.open();

Comments

  1. Kota Iguchi 2017-06-20

    Confirmed that this issue is not specific to Label but affecting entire Views.
       var win = Ti.UI.createWindow({backgroundColor:'green'}),
           lbl = Ti.UI.createView({
               borderRadius: '3dp',
               borderWidth: '1dp',
               borderColor: 'red',
               backgroundColor:'blue'
           }); 
       
       win.add(lbl);
       win.open();
       
  2. Kota Iguchi 2017-06-20

    https://github.com/appcelerator/titanium_mobile_windows/pull/1017
  3. Samir Mohammed 2017-08-09

    Verified fix in SDK Version 6.2.0.v20170808012225 and SDK Version 7.0.0.v20170808071205. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1017

JSON Source