[TIMOB-28115] iOS: Animation on a view, that has a shadow and borderRadius with multiple values, does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | animate, shadow |
Reporter | Vijay Singh |
Assignee | Vijay Singh |
Created | 2020-09-08T22:26:57.000+0000 |
Updated | 2020-09-10T22:52:39.000+0000 |
Description
In recent support of borderRadius with multiple values (TIMOB-27305), animation on view that has a shadow and borderRadius with multiple values, does not work.
Detail discussion can be found [here](https://github.com/appcelerator/titanium_mobile/pull/12005).
Test Case -
var win = Ti.UI.createWindow({
backgroundColor:'#fff'
});
var box = Ti.UI.createView({
backgroundColor : 'red',
height : '100',
width : '100',
borderRadius: "40, 20, 10, 10", //"20", //
viewShadowColor: '#d000',
viewShadowRadius:20,
viewShadowOffset:{x: 10, y: 20},
});
win.add(box);
box.addEventListener('click', function() {
var matrix = Ti.UI.createMatrix2D();
matrix = matrix.rotate(180);
matrix = matrix.scale(2, 2);
var a = Ti.UI.createAnimation({
transform : matrix,
duration : 2000,
autoreverse : true,
repeat : 3
});
box.animate(a);
});
win.add(box);
win.open();
No comments