Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-417] animation of width (and possibly others) doesn't seem to respect anchorPoint

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:52:59.000+0000
Affected Version/sn/a
Fix Version/s0.9.2
ComponentsiOS
Labelsios, iphone
ReporterJeff Haynie
AssigneeBlain Hamon
Created2011-04-15T02:28:57.000+0000
Updated2011-04-17T01:52:59.000+0000

Description

animation on width seems to ignore anchor point.

see test case at:

http://pastie.org/826397">http://pastie.org/826397

Comments

  1. Blain Hamon 2011-04-15

    There was a bug in not copying center, which the next push will fix. However, the implementation is not as the pastie expects. AnchorPoint is used in positioning if and only if center is defined. Otherwise, the center of the view is changed to compensate for the new layout, compensating for a nonstandard anchorPoint. This is done so that layouts are stateless and can be recreated without having to remember the history of animations.

    To have a proper test, use something like "center:{x:50,y:50}," in rectangle's createView arguments.

  2. Jeff Haynie 2011-04-15

    (from [6eb737e921b789a0622403d85d1c456af0a8f94d]) Fix on camera and layout Closes #389 and Closes #417 http://github.com/appcelerator/titanium_mobile/commit/6eb737e921b789a0622403d85d1c456af0a8f94d"> http://github.com/appcelerator/titanium_mobile/commit/6eb737e921b78...

JSON Source