{ "id": "93784", "key": "TIMOB-9783", "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": null, "resolutiondate": null, "created": "2012-06-25T04:14:41.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-and060112", "qe-nfc" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:13.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Feature not supported in 2.0.2.\r\nIt works as expected on Android 2.2\r\n\r\nSteps to reproduce:\r\n1) Use the code below\r\n{code}\r\nvar win = Titanium.UI.createWindow();\r\nwin.backgroundColor = '#fff';\r\n\t\t \r\n\t\tvar view = Ti.UI.createView({\r\n\t\t height: 250,\r\n\t\t width: 250,\r\n\t\t backgroundColor: '#a00'\r\n\t\t});\r\n\t\t \r\n\t\tview.addEventListener('pinch', function(e) {\r\n\t\t view.height = baseHeight * e.scale;\r\n\t\t view.width = baseWidth * e.scale;\r\n\t\t});\r\n\t\t\r\n\t\tview.addEventListener('touchstart', function(e) { \r\n\t\t baseHeight = view.height;\r\n\t\t baseWidth = view.width;\r\n\t\t});\r\n\t\t \r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n\r\n2) Run the app\r\n3) Pinch to zoom in the displayed red view.\r\n4) Pinch to zoom out the red view.\r\nExpected result:\r\n3) After step 3, the view should get bigger in size.\r\n4) After step 4, the view should get smaller,background should be white window.\r\nActual result:\r\n3) After step 3, the view gets bigger in size.\r\n4) After step 4, the view gets smaller,leaving behind a black background.\r\n\r\nIf the device is rotated to a different orientation, the black background disappears.\r\n", "attachment": [], "flagged": false, "summary": "Android:View:Pinching in of the view leaves black background behind,which disappears on device rotation", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Titanium SDK: 2.1.0.v20120622174154\r\nTested with Titanium  Studio: 2.1.0.201206221045\r\nDevice - Samsung Galaxy Nexus Android 4.0.2,Samung GALAXY Tab 620 Android 3.2\r\nMachine OS - MAC 10.7.3", "comment": { "comments": [ { "id": "240501", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces with\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\nDevice: Samsung galaxy s duos Android version: 4.0.4", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-04T07:01:55.000+0000", "updated": "2013-03-04T07:01:55.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }