[TIMOB-521] animating with center causes crash
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:53:22.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.2.0 |
Components | iOS |
Labels | animation, ios, iphone |
Reporter | Nolan Wright |
Assignee | Jeff Haynie |
Created | 2011-04-15T02:30:55.000+0000 |
Updated | 2011-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();
Fixed. Problem was that although color is set properly when calling
-[TiAnimation initWithDictionary:]
, it was NOT set properly in the synthesized methods for thecenter
property.Similarly for
color
andbackgroundColor
. They should all be fixed now.(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...