{ "id": "121161", "key": "TIMOB-15472", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-12-12T16:06:23.000+0000", "created": "2013-10-14T06:51:02.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "animation", "triage", "width" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-21T22:20:16.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": "While animating a view's width, its height also changes.\r\n*Steps To Reproduce*\r\n\r\n1.Here is the sample test case:\r\n{code}\r\n\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar view=Ti.UI.createView({\r\n\tleft: 0,\r\n\ttop: 0,\r\n\twidth: '44dp',\r\n\theight:'150dp',\r\n\tbackgroundColor:\"#999999\"\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'white',\r\n\ttext:'Tap',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nvar expanded = false;\r\nlabel1.addEventListener('singletap', function (e) {\r\n\tvar newWidth,\r\n\t\tanimation;\r\n\r\n\tif (expanded) {\r\n\t\tnewWidth = '44dp';\r\n\t} else {\r\n\t\tnewWidth = '250dp';\r\n\t}\r\n\r\n\texpanded = !expanded;\r\n\t\r\n\tanimation = Ti.UI.createAnimation({\r\n\t\twidth: newWidth,\r\n\t\tduration: 250,\r\n\t\t\r\n\t});\r\n\t\r\n\tview.animate(animation);\r\n});\r\n\r\nview.add(label1);\r\nwin.add(view);\r\nwin.open();\r\n{code} \r\n\r\n2. Launch the application and click on the label 'Tap'. \r\n\r\n3. Height also changes with the animation of view's width.", "attachment": [], "flagged": false, "summary": "Android: Animating a view's width changes its height", "creator": { "name": "mpathak", "key": "mpathak", "displayName": "Meenakshi Pathak", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpathak", "key": "mpathak", "displayName": "Meenakshi Pathak", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.1.3, Android 4.1.2", "comment": { "comments": [ { "id": "283984", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tried with latest master and is working fine", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-12-12T16:06:23.000+0000", "updated": "2013-12-12T16:06:23.000+0000" }, { "id": "414565", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T22:20:16.000+0000", "updated": "2017-03-21T22:20:16.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }