[TIMOB-28095] iOS: Border Radius of a view cannot be changed
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Resolved |
Resolution | Unresolved |
Affected Version/s | Release 9.1.0 |
Fix Version/s | Release 9.1.0 |
Components | iOS |
Labels | regression |
Reporter | Satyam Sekhri |
Assignee | Vijay Singh |
Created | 2020-08-24T19:10:40.000+0000 |
Updated | 2021-01-18T07:56:54.000+0000 |
Description
Cannot change the border radius of a view.
This is a regression in SDK 9.1.0 as it works fine in SDK 9.0.3.GA
Steps to Reproduce:
1. Create a project with app.js below
2. Build it to an iOS device
3. The app launches with a view having border radius set to 10.
4. Click on buttons "borderRadius=30/20" or "borderRadius=30All" or "borderRadius=0" to change border radius to 30 or 0.
Actual Result:
The border radius does not change
Expected Result:
Should be able to change the border radius
app.js
var _window = Ti.UI.createWindow({
backgroundColor : 'blue'
});
var view = Ti.UI.createView({
left : 10,
height : 100,
width : 100,
top : 10,
backgroundColor : 'white',
borderWidth : 20,
borderColor : 'red',
borderRadius : 10
});
var b3 = Ti.UI.createButton({
top : 250,
title : "borderRadius=30/20"
});
b3.addEventListener("click", function() {
view.borderRadius = ['30', '20', '30', '20'];
});
var b4 = Ti.UI.createButton({
top : 300,
title : "borderRadius=30 All"
});
b4.addEventListener("click", function() {
view.borderRadius = 30;
});
var b5 = Ti.UI.createButton({
top : 350,
title : "borderRadius=0"
});
b5.addEventListener("click", function() {
view.borderRadius = 0;
});
_window.add(view);
_window.add(b3);
_window.add(b4);
_window.add(b5);
_window.open();
PR - https://github.com/appcelerator/titanium_mobile/pull/11951
[9_1_X] PR - https://github.com/appcelerator/titanium_mobile/pull/11952
This caused a regression: AC-6594