{ "id": "121152", "key": "TIMOB-15471", "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": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-12-12T16:28:39.000+0000", "created": "2013-10-13T20:38:09.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_animation", "qe-testadded" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "37716", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "123054", "key": "TIMOB-15882", "fields": { "summary": "Android: View changes size when animated with position change", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2014-05-20T18:20:15.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "View dissappears after animating. Doesn't work on 4.2.x, works fine on 2.2 device.\r\nTest code: \r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : '#4b4276',\r\n navBarHidden : true,\r\n});\r\n \r\nvar animateLeft = Ti.UI.createAnimation({\r\n top : 200,\r\n duration : 400,\r\n});\r\n \r\nvar loginView = Ti.UI.createView({\r\n height : 50,\r\n width : 200,\r\n top : 0,\r\n // comment out the line below or this will fail on Android\r\n borderRadius : 10\r\n});\r\n \r\nvar txtUserName = Ti.UI.createTextField({\r\n backgroundColor : '#fff',\r\n hintText : 'Password',\r\n width : 150,\r\n height : 50,\r\n left : 0,\r\n font : {\r\n fontFamily : 'OpenSans-Light',\r\n },\r\n textAlign : Ti.UI.TEXT_ALIGNMENT_CENTER,\r\n});\r\nloginView.add(txtUserName);\r\nvar btnUserLogin = Ti.UI.createButton({\r\n backgroundImage : 'none',\r\n backgroundColor : '#92cf5c',\r\n font : {\r\n fontFamily : 'OpenSans-Light',\r\n },\r\n color : '#ffffff',\r\n title : 'OK',\r\n width : 50,\r\n height : 50,\r\n right : 0,\r\n});\r\n \r\nloginView.add(btnUserLogin);\r\n \r\nwin.addEventListener('open', function() {\r\n if (Ti.Platform.osname == 'android') {\r\n setTimeout(function() {\r\n loginView.animate(animateLeft);\r\n }, 1000);\r\n } else if (Ti.Platform.osname == 'iphone') {\r\n loginView.animate(animateLeft);\r\n }\r\n \r\n});\r\n \r\nwin.add(loginView);\r\n \r\nwin.open();\r\n{code}\r\n1. Run code on 4.2.x device. Observe that view disappear after animating", "attachment": [], "flagged": false, "summary": "Android: View disappear after animating on 4.x device", "creator": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "283987", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Same fix we did for TIMOB-15882 should fix this.\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5064\r\n", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-12-12T16:28:39.000+0000", "updated": "2013-12-12T16:28:39.000+0000" }, { "id": "305746", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix . The view does not disappear after animation.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 3.3.0.201405161313\r\nTi SDK : 3.3.0.v20140516180912\r\nMac OSX : 10.8.5\r\nAlloy : 1.4.0-alpha\r\nCLI - 3.3.0-alpha3\r\nCode Processor: 1.1.1\r\nSamsung Galaxy S4 running android 4.4.2", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-20T18:19:10.000+0000", "updated": "2014-05-20T18:19:10.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }