[TIMOB-417] animation of width (and possibly others) doesn't seem to respect anchorPoint
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:52:59.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 0.9.2 |
Components | iOS |
Labels | ios, iphone |
Reporter | Jeff Haynie |
Assignee | Blain Hamon |
Created | 2011-04-15T02:28:57.000+0000 |
Updated | 2011-04-17T01:52:59.000+0000 |
Description
animation on width seems to ignore anchor point.
see test case at:
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.
(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...