{ "id": "62861", "key": "TIMOB-2229", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2011-12-04T16:34:26.000+0000", "created": "2011-04-15T03:14:12.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "parity" ], "versions": [ { "id": "11233", "name": "Release 1.6.0", "archived": true, "released": true, "releaseDate": "2011-02-23" } ], "issuelinks": [ { "id": "14043", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "83350", "key": "TIDOC-235", "fields": { "summary": "APIDoc: animate does not change the property value", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Trivial", "id": "5" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-02-10T00:48:36.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

If I animate an property of an ui element, the property does not\r\nchange the value after animation.

\r\n

Example:

\r\n
\r\nvar search = Titanium.UI.createSearchBar({\r\n  height: 43,\r\n  top: -43\r\n});\r\nwin.add(search);\r\nsearch.animate({top:0});\r\nTi.API.info(search.top);\r\n
\r\n

Output: -43
\r\nExpected result: 0

\r\n

The search bar is animated but the top property has not changed\r\nthe value.

{html}", "attachment": [], "flagged": false, "summary": "iOS: animate does not change the property value", "creator": { "name": "netspy", "key": "netspy", "displayName": "netspy", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "netspy", "key": "netspy", "displayName": "netspy", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "168350", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is not a bug in animation. The bug is expecting a layout parameter to be updated after an animation. We will be adding contentRect or something equivalent which will tell you where your view is on the display in the next release.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-07T13:05:45.000+0000", "updated": "2011-10-07T13:05:45.000+0000" }, { "id": "171680", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This may be expected behavior. Final value can be set on end event.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-05T16:49:36.000+0000", "updated": "2011-11-05T16:49:36.000+0000" }, { "id": "172496", "author": { "name": "itorres", "key": "itorres", "displayName": "Ignacio Torres Masdeu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "If I animate an object from point a to point b, I expect the view state to reflect that movement. Setting the final value with a 'complete' event feels hacky.\r\n\r\nI understand that my reasoning is not correct, could you explain why the current behavior is the expected one?", "updateAuthor": { "name": "itorres", "key": "itorres", "displayName": "Ignacio Torres Masdeu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-14T08:14:20.000+0000", "updated": "2011-11-14T08:14:20.000+0000" }, { "id": "174438", "author": { "name": "ziggythehamster", "key": "ziggythehamster", "displayName": "Keith Gable", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "ziggythehamster", "key": "ziggythehamster", "displayName": "Keith Gable", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-01T09:26:03.000+0000", "updated": "2011-12-01T09:26:03.000+0000" }, { "id": "174529", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Keith, just to clarify layout parameters aren't the same as view properties. It was a bug in iOS that height was changed to be the current height for example. When height is \"auto\" it should stay that way so that when orientation changes occur the information is still available to layout the display. For example if you set width 50% and as soon as the view is drawn it changes to 150 then you've lost the layout configuration when other container views change. I'm sending a note to our doc go to talk about this in the animation as you suggest.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-01T19:37:30.000+0000", "updated": "2011-12-01T19:37:30.000+0000" }, { "id": "174572", "author": { "name": "ziggythehamster", "key": "ziggythehamster", "displayName": "Keith Gable", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is there a way to access the view's active properties? I understand there is a separation between the native object's current properties and the view object's properties, but if views can be moved around onscreen without exposing their current positions somewhere, it seems buggy at best.", "updateAuthor": { "name": "ziggythehamster", "key": "ziggythehamster", "displayName": "Keith Gable", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-02T09:39:28.000+0000", "updated": "2011-12-02T09:39:28.000+0000" }, { "id": "174637", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "You can use a view's `size` property to get the view's active properties. For example, if you set the initial layout value of an ios view to have a width of 50%, the value in view.size.width would be 160. The size property is a dictionary that looks like this: \r\n\r\n{code}\r\n{\r\n x: 0,\r\n y: 0,\r\n width: 0,\r\n height: 0\r\n}\r\n{code}\r\n", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-02T14:29:57.000+0000", "updated": "2011-12-02T14:29:57.000+0000" }, { "id": "174650", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Note that the {{size}} property only gives you the object's size (as the name suggests).\r\n\r\nAs Don said in his first comment, the position half of the equation is missing. This is a known issue.\r\n\r\nThe current situation is frustrating. But I will document it for 1.8.0 so it isn't frustrating AND mysterious.\r\n", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-02T16:41:54.000+0000", "updated": "2011-12-02T16:41:54.000+0000" }, { "id": "174803", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "See the comments. APIDoc is being added to help.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-04T16:34:26.000+0000", "updated": "2011-12-04T16:34:26.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }