Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28115] iOS: Animation on a view, that has a shadow and borderRadius with multiple values, does not work

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsanimate, shadow
ReporterVijay Singh
AssigneeVijay Singh
Created2020-09-08T22:26:57.000+0000
Updated2020-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();

Comments

No comments

JSON Source