Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-521] animating with center causes crash

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:53:22.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.2.0
ComponentsiOS
Labelsanimation, ios, iphone
ReporterNolan Wright
AssigneeJeff Haynie
Created2011-04-15T02:30:55.000+0000
Updated2011-04-17T01:53:22.000+0000

Description

click on view = crash

code:

var win = Titanium.UI.createWindow({

title:"window",

});

var view = Ti.UI.createView({

backgroundColor:'red',
height:100,
width:100,
top:10

});

var a = Ti.UI.createAnimation();
a.center = {x:100,y:100}
a.duration = 1000;

view.addEventListener('click', function()
{

Ti.API.info(a)
view.animate(a);

});

win.add(view);

win.open();

Comments

  1. Stephen Tramer 2011-04-15

    Fixed. Problem was that although color is set properly when calling -[TiAnimation initWithDictionary:], it was NOT set properly in the synthesized methods for the center property.

    Similarly for color and backgroundColor. They should all be fixed now.

  2. Jeff Haynie 2011-04-15

    (from [84de36dc450d652588500a1a70455966f77a736f]) Closes #521: Setter for 'center' (and 'color', and 'backgroundColor') needed to be custom. http://github.com/appcelerator/titanium_mobile/commit/84de36dc450d652588500a1a70455966f77a736f"> http://github.com/appcelerator/titanium_mobile/commit/84de36dc450d6...

JSON Source