Problem
When move a view with borderwidth and the view has children by animation, app will crash.
Repro sequence
var window = Ti.UI.createWindow({
backgroundColor : "#fff"
});
var box = Ti.UI.createView({
width : 80,
height : 50,
backgroundColor : "#0f0",
borderWidth : 2,
layout : "vertical"
});
window.add(box);
var lbl_name = Ti.UI.createLabel({
top : 5,
width : 150,
height : Ti.UI.SIZE,
text : "hello",
color : "#000",
textAlign : Ti.UI.TEXT_ALIGNMENT_CENTER
});
box.add(lbl_name);
// Animation-Start
var btn_start = Ti.UI.createButton({
title : 'Start',
bottom : 50,
width : 200
});
btn_start.addEventListener('click', function() {
var a1 = Titanium.UI.createAnimation();
a1.top = 100;
a1.left = 100;
a1.duration = 1000;
box.animate(a1);
});
window.add(btn_start);
window.open();
fixed the cast exception https://github.com/appcelerator/titanium_mobile/pull/4382
Closing ticket as duplicate and links to the related ticket have been provided above.