{ "id": "121093", "key": "TIMOB-15470", "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": "2014-08-08T11:47:23.000+0000", "created": "2013-10-11T13:38:02.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "imageView", "resize", "scrollview" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-27T20:18:28.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 creating an imageView where the image is too large for the imageView, it is expected to resize, when setting the width, and SIZE for height. \r\n\r\nThis works fine, then the imageView is added directly to the window. But if the imageView is added to a scrollView, then it fails to resize.\r\n\r\n*WORKS: (see: correct.png)*\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : \"#FFF\",\r\n\tfullscreen : false\r\n});\r\nvar imageView = Ti.UI.createImageView({\r\n\timage : \"http://www.menucool.com/slider/prod/image-slider-4.jpg\",\r\n\tpreventDefaultImage : true,\r\n\twidth : \"320dp\",\r\n\theight : Ti.UI.SIZE\r\n});\r\nwin.add(imageView);\r\n{code}\r\n\r\n*DOES NOT WORK: (see wrong.png)*\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : \"#FFF\",\r\n\tfullscreen : false\r\n});\r\nvar scrollView = Ti.UI.createScrollView();\r\nvar imageView = Ti.UI.createImageView({\r\n\timage : \"http://www.menucool.com/slider/prod/image-slider-4.jpg\",\r\n\tpreventDefaultImage : true,\r\n\twidth : \"320dp\",\r\n\theight : Ti.UI.SIZE\r\n});\r\nscrollView.add(imageView);\r\nwin.add(scrollView);\r\n{code}\r\n\r\n\r\n*Steps to reproduce*\r\n\r\n* create new project\r\n* paste above code\r\n* run on android", "attachment": [ { "id": "43112", "filename": "correct.png", "author": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-11T13:38:02.000+0000", "size": 137668, "mimeType": "image/png" }, { "id": "43111", "filename": "wrong.png", "author": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-11T13:38:02.000+0000", "size": 273357, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: ImageView within ScrollView does not resize correctly", "creator": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android 2.3.3, 4.2\r\nTiSDK 3.1.3.GA, 3.1.0GA", "comment": { "comments": [ { "id": "274927", "author": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with Android 2.3.3 - 4.2 and Titanium 3.1.0GA - 3.1.3GA Image did not resize when in scrollview.", "updateAuthor": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-13T20:34:05.000+0000", "updated": "2013-10-13T20:34:05.000+0000" }, { "id": "317703", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "cannot reproduce\r\n\r\nTitanium Studio, build: 3.3.0.201407100905\r\nTitanium SDK version 3.3.0.GA \r\nCLI version 3.3.0, \r\ndevice: HTC Desire X (HT35XLY01791) Android 4.1.1\r\nTargeting Android SDK: 20", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-08T11:46:08.000+0000", "updated": "2014-08-08T11:46:08.000+0000" }, { "id": "415919", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as I am unable to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.0.3 GA\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nTi CLI 5.0.11\r\nAlloy 1.9.5\r\nArrow 1.10.1\r\nXcode 8.2 (8C38)\r\nNode v4.6.0\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-27T20:18:28.000+0000", "updated": "2017-03-27T20:18:28.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }