{ "id": "112578", "key": "TIMOB-13494", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-06-07T23:16:24.000+0000", "created": "2013-04-09T07:26:44.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "Titanium", "android", "exalture", "mobilesdk", "supportTeam" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-21T22:43: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": "When we zoom in or out an image in Image View using enableZoomControls property,\r\nthen image can be slide out of the image view and there is not way to restrict this behavior.\r\n\r\nSteps to reproduce:\r\n\r\n1: Launch the sample code present in the JIRA in Android App Project\r\n2: Tap on the image and move your finger in any direction, for example to right. You should be able to see part image and part green.\r\n3: Lift up your finder.\r\n4: Tap on the image again and move the image to the right. Move it unless the image disappears.\r\n5: Lift up for your finger.\r\n\r\nNow you will find that the image is no longer visible. Only the green color background is visible.\r\n\r\n*sample Code*\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n exitOnClose : true,\r\n navBarHidden : true\r\n});\r\n\r\nvar parentView = Titanium.UI.createView({\r\n left : 0,\r\n top : 0,\r\n width : '100%',\r\n height : '80%',\r\n backgroundColor : 'red'\r\n});\r\n\r\nvar imageView = Titanium.UI.createImageView({\r\n left : 0,\r\n top : 0,\r\n width : \"150dp\",\r\n height : \"100dp\",\r\n image : 'taman.jpg',\r\n canScale : true,\r\n enableZoomControls : true,\r\n backgroundColor : 'green'\r\n});\r\n\r\nimageView.addEventListener(\"touchmove\",function(e){\r\n\t\r\n});\r\n\r\nparentView.add(imageView);\r\nwin.add(parentView);\r\nwin.open(); \r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Image View does not maintain image boundary ", "creator": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium Mobile SDK, Android.", "comment": { "comments": [ { "id": "247732", "author": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "updateAuthor": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "created": "2013-04-16T09:03:31.000+0000", "updated": "2013-04-16T09:03:31.000+0000" }, { "id": "256416", "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:04:50.000+0000", "updated": "2013-06-06T15:04:50.000+0000" }, { "id": "256763", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-07T23:16:24.000+0000", "updated": "2013-06-07T23:16:24.000+0000" }, { "id": "414612", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T22:43:25.000+0000", "updated": "2017-03-21T22:43:25.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }