{ "id": "112075", "key": "TIMOB-13373", "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": "15498", "description": "2013 Sprint 12 API", "name": "2013 Sprint 12 API", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15110", "description": "2013 Sprint 12", "name": "2013 Sprint 12", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-07T23:21:10.000+0000", "created": "2013-04-02T09:04:10.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_imageview", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2013-10-18T06:46:25.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": "If the following code is run, once the image is displayed, pan the image without zooming. It can be observed that the image is going outside the viewable region and the view becomes green and the image is not longer displayed.\r\n\r\nIt should be within the viewable region.\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n\texitOnClose : true,\r\n\tnavBarHidden : true\r\n});\r\n\r\n\r\nvar parentView = Titanium.UI.createView({\r\n\tleft : 0,\r\n\ttop : 0,\r\n\twidth : '100%',\r\n\theight : '50%',\r\n\tbackgroundColor : 'red'\r\n});\r\n\r\n\r\nvar imageView = Titanium.UI.createImageView({\r\n\tleft : 0,\r\n\ttop : 0,\r\n\twidth : Titanium.UI.SIZE,\r\n\theight : Titanium.UI.SIZE,\r\n\tcanScale : true,\r\n\tenableZoomControls : true,\r\n\tbackgroundColor : 'green'\r\n});\r\n\r\nparentView.add(imageView);\r\nwin.add(parentView);\r\nwin.open();\r\n\r\n\r\nvar xhr = Titanium.Network.createHTTPClient({\r\n\tonload : function(e) {\r\n\t\tTi.API.error(\"<<<<<<<<<<<<<<<<<<<<<<<<\" + this.responseData);\r\n\t\timageView.image = this.responseData;\r\n\t},\r\n\t\r\n\tonerror : function(e) {\r\n\t\talert('<<>>');\r\n\t\tTi.API.error(\"The error is: \" + e.error);\r\n\t},\r\n\t\r\n\ttimeout : 10000,\r\n\tautoEncodeUrl : false\r\n});\r\n\r\nxhr.open('GET', 'http://images4.wikia.nocookie.net/__cb20111006233206/disney/images/e/e2/MMCH_Y3.jpg');\r\nxhr.setRequestHeader('content-type', 'application/json');\r\nxhr.setRequestHeader('accept', 'application/json');\r\nxhr.send();\r\n{code}\r\n", "attachment": [ { "id": "36966", "filename": "Device_02.png", "author": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "created": "2013-04-03T06:16:24.000+0000", "size": 71561, "mimeType": "image/x-png" }, { "id": "36967", "filename": "Device_03.png", "author": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "created": "2013-04-03T06:16:25.000+0000", "size": 21675, "mimeType": "image/x-png" }, { "id": "36968", "filename": "Device_04.png", "author": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "created": "2013-04-03T06:16:25.000+0000", "size": 14745, "mimeType": "image/x-png" }, { "id": "36965", "filename": "Device_1.jpg", "author": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "created": "2013-04-03T06:15:03.000+0000", "size": 32122, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: ImageView canScale property does not maintain boundary", "creator": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "environment": "OS : Windows 7\r\nTitanium Studio : 3.0.2.201302191606\r\nMobile SDK : 3.0.2GA\r\nPlatform : Android 4.2.2, 4.0.4, 2.2", "comment": { "comments": [ { "id": "245344", "author": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on a 4.1 device and 4.2 simulator could not reproduce.", "updateAuthor": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T23:23:52.000+0000", "updated": "2013-04-02T23:23:52.000+0000" }, { "id": "245402", "author": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "body": "Jamie, I have attached the screenshot showing the issue that we are facing. I have also modified the code a bit, so that it will download an image from remote server. The code has been executed on Sumsung Galaxy S2 running Android 4.2.2.\r\n\r\nDevice_1 ==> This is the first image that is being displayed once the code has been executed.\r\nDevice_2 ==> Pan (move) the image to bottom-right without zooming.\r\nDevice_3 ==> Pan the image more so that the background color (green) of the imageview gets more prominent.\r\nDevice_4 ==> The actual image has been moved away and is no longer visible.\r\n\r\nThis should not happen and it should be within the boundary such that the image is always visible, with or without zooming.\r\n\r\nThis is reproducible in both Android device as well as Android simulator, from Android 2.2 to current version.", "updateAuthor": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "created": "2013-04-03T06:26:02.000+0000", "updated": "2013-04-03T06:26:02.000+0000" }, { "id": "245777", "author": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reproduced on Android Simulator 2.2", "updateAuthor": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-04T20:21:24.000+0000", "updated": "2013-04-04T20:21:24.000+0000" }, { "id": "247733", "author": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "body": "Is there an update for this issue?", "updateAuthor": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "created": "2013-04-16T09:04:16.000+0000", "updated": "2013-04-16T09:04:16.000+0000" }, { "id": "249006", "author": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "body": "This issue is still reproducible in 3.1.0GA", "updateAuthor": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "created": "2013-04-25T08:04:26.000+0000", "updated": "2013-04-25T08:04:26.000+0000" }, { "id": "256418", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Behavior implemented\r\n If the image is in the original size, scrolling is not allowed\r\n If the image is zoomed in, then it can be scrolled until the boundaries, images cannot be scrolled beyond the boundaries.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-06-06T15:06:19.000+0000", "updated": "2013-06-06T15:06:19.000+0000" }, { "id": "256764", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4361", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-07T23:16:46.000+0000", "updated": "2013-06-07T23:16:46.000+0000" }, { "id": "265875", "author": { "name": "vkorol", "key": "vkorol", "displayName": "Viktor Korol", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Please add this fix to 3.1.2.", "updateAuthor": { "name": "vkorol", "key": "vkorol", "displayName": "Viktor Korol", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2013-08-10T11:12:18.000+0000", "updated": "2013-08-10T11:12:18.000+0000" }, { "id": "275587", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with Fix with:\r\n\r\nAppc-Studio: 3.2.0.201310170829\r\nSdk:3.2.0.v20131017152001\r\nalloy:1.2.2\r\nnpm:1.3.2\r\ntitanium:3.2.0\r\ntitanium-code-processor:1.0.3\r\nDevice:Google Nexus 7(v4.3)\r\nXcode: 5\r\n\r\nimageView canScale property working fine.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-18T06:46:02.000+0000", "updated": "2013-10-18T06:46:02.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }