[TIMOB-20411] Android: Only the border has a radius when borderRadius is set to 10
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | Release 5.2.0 |
| Fix Version/s | n/a |
| Components | Android |
| Labels | engSchedule, qe-5.2.0 |
| Reporter | Josh Longton |
| Assignee | Unknown |
| Created | 2016-02-17T01:06:14.000+0000 |
| Updated | 2019-09-12T17:15:59.000+0000 |
Description
Only the border has a radius when borderRadius is set to 10 on android (see images)
*Steps to reproduce:*
Use the app.js file below.
*Actual :* Only the border has a radius when borderRadius is set to 10; !Screenshot_20160216-170221.png|thumbnail! *Expected:* View has a radius as well as the views border. (see image) !Screenshot_20160216-170230.png|thumbnail! *App.js*
var win = Ti.UI.createWindow({
backgroundColor: 'blue'
});
var view = Ti.UI.createView({
left: 10,
height: 300,
width: 300,
top: 10,
backgroundColor: 'white',
borderWidth: 20,
borderColor: 'red'
});
var b1 = Ti.UI.createButton({
top: 310,
title: "backgroundColor=transparent"
});
b1.addEventListener("click", function() {
view.backgroundColor = 'transparent';
});
var b2 = Ti.UI.createButton({
top: 350,
title: "backgroundColor=white"
});
b2.addEventListener("click", function() {
view.backgroundColor = 'white';
});
var b3 = Ti.UI.createButton({
top: 390,
title: "borderRadius=30"
});
b3.addEventListener("click", function() {
view.borderRadius = 30;
});
var b4 = Ti.UI.createButton({
top: 430,
title: "borderRadius=10"
});
b4.addEventListener("click", function() {
view.borderRadius = 10;
});
var b5 = Ti.UI.createButton({
top: 470,
title: "borderRadius=0"
});
b5.addEventListener("click", function() {
view.borderRadius = 0;
});
var b6 = Ti.UI.createButton({
top: 510,
title: "borderToggle"
});
b6.addEventListener("click", function() {
if (view.borderWidth == 0) {
view.borderWidth = 20;
} else {
view.borderWidth = 0;
}
});
win.add(view);
win.add(b1);
win.add(b2);
win.add(b3);
win.add(b4);
win.add(b5);
win.add(b6);
win.open();
Attachments
| File | Date | Size |
|---|---|---|
| Screenshot_20160216-170221.png | 2016-02-17T01:03:49.000+0000 | 94263 |
| Screenshot_20160216-170230.png | 2016-02-17T01:03:51.000+0000 | 97125 |
No comments