{ "id": "99675", "key": "TIMOB-10580", "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": "2017-06-26T18:45:20.000+0000", "created": "2012-08-23T14:19:47.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "core", "supportTeam" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-04T23:20:28.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "h4. Mobileweb view doesn't appear if animate called before postlayout finishes (works in iOS)\r\nWhen adding a view to a window and calling animate on the view, the view will not appear at all.\r\nHowever, in iOS, the view will appear in its original position and complete the animation.\r\n\r\nh4. Steps to reproduce\r\n1. Copy the code below and run using mobileweb in chrome\r\n2. Click on the window, there will be an output message in the console\r\n3. A view should appear and animate but it does not.\r\n\r\n4. Repeat using iOS\r\n5. Note the blue square view does appear and animates.\r\n\r\n6. Uncomment all commented code\r\n7. Run in mobileweb again\r\n8. The desired effect should occur with the view appearing and completing the animation\r\n\r\nh4. CODE:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\nwin.open();\r\n\r\nwin.addEventListener('click', function(){\r\n\tTi.API.info('win clicked');\r\n\tvar view = Ti.UI.createView({\r\n\t\theight: 50,\r\n\t\twidth: 50,\r\n\t\tbackgroundColor: 'blue'\r\n\t});\r\n\twin.add(view);\r\n\t// view.addEventListener('postlayout', function() {\r\n\t\tview.animate({\r\n\t\t\ttop: 0,\r\n\t\t\tduration: 300\r\n\t\t});\r\n\t// });\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: View never appears if animate is called before postlayout finishes", "creator": { "name": "amiller", "key": "amiller", "displayName": "Alexander Miller", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amiller", "key": "amiller", "displayName": "Alexander Miller", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 2.2.0.v20120821151712\r\nGoogle Chrome Version 21.0.1180.79\r\niPhone iOS 5.1", "comment": { "comments": [ { "id": "422787", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Marking ticket as \"Won't Fix\" as MobileWeb has been deprecated.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-26T18:45:20.000+0000", "updated": "2017-06-26T18:45:20.000+0000" }, { "id": "436380", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T23:20:28.000+0000", "updated": "2018-04-04T23:20:28.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }