{ "id": "64827", "key": "TIMOB-3749", "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": "13870", "description": "", "name": "Sprint 2012-16 API", "archived": true, "released": true, "releaseDate": "2012-08-13" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-03-15T18:37:19.000+0000", "created": "2011-04-26T15:31:47.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_imageview", "qe-port", "qe-testadded" ], "versions": [ { "id": "11233", "name": "Release 1.6.0", "archived": true, "released": true, "releaseDate": "2011-02-23" }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "19939", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "99171", "key": "AC-1927", "fields": { "summary": "[ios] imageview: resizing with Ti.UI.SIZE when image size ratio != 1", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "19769", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "98908", "key": "TIMOB-10358", "fields": { "summary": "Android: ImageView parity for scaling behavior", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "19770", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "98909", "key": "TIMOB-10359", "fields": { "summary": "MobileWeb: Imageview parity for scaling behavior", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "19798", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "98949", "key": "TIMOB-10371", "fields": { "summary": "Blackberry: Imageview parity for scaling behavior", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-29T22:14:20.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "If you create an ImageView with a fixed width and auto for height, if the image is being scaled, then the height seems to leave padding on top and bottom, see screen shot: http://screencast.com/t/OlO2t6WIw\r\n\r\nHere is test code:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor:'#fff'});\r\n\r\nvar image = Ti.UI.createImageView({\r\n\timage: \"image165.jpg\",\r\n\tleft: 0,\r\n\ttop : 0,\r\n\twidth : '165',\r\n\theight : 'auto',\r\n\tbackgroundColor : \"red\"\r\n});\r\n\r\nwin.add(image);\r\nwin.open();\r\n{code}\r\n\r\nHere is a link to the image that is 201x105: http://www.catravelservices.com/management/hotels/pictures/Mawamba_lodge_nature.jpg\r\n\r\nHD Ticket Reference: http://appc.me/c/APP-297864", "attachment": [ { "id": "46245", "filename": "imageview_scalling.png", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-02-28T07:10:42.000+0000", "size": 117999, "mimeType": "image/png" }, { "id": "46246", "filename": "imageview_scalling2.png", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-02-28T07:10:42.000+0000", "size": 95631, "mimeType": "image/png" }, { "id": "42200", "filename": "IMG_0087.PNG", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-06T07:21:09.000+0000", "size": 151905, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: ImageView with scaled image, auto leaves padding", "creator": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "177933", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "body": "Confirmed on 1.8.0.1, iOS 5 simulator.\r\n\r\nI'm having the same issue.\r\n\r\nCan anyone take a look at this?", "updateAuthor": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2012-01-04T00:27:32.000+0000", "updated": "2012-01-04T00:27:32.000+0000" }, { "id": "182171", "author": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Another ticket, with same issue, http://support-admin.appcelerator.com/display/APP-934641#reply74719", "updateAuthor": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-06T21:26:53.000+0000", "updated": "2012-02-06T21:26:53.000+0000" }, { "id": "194892", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested with 2.0.1GA2, issue still exists on the iOS simulator. Android is not affected with this issue. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-15T14:02:35.000+0000", "updated": "2012-05-15T14:02:35.000+0000" }, { "id": "208397", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.1.0.GA, this issue still exists on the iOS simulator. ", "updateAuthor": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-18T15:45:45.000+0000", "updated": "2012-07-18T15:45:45.000+0000" }, { "id": "208478", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "For now, there is the following workaround: http://pastebin.com/YmTGkp7d\r\n\r\nHowever it doesn't support dynamic resizing behavior (i.e. using Ti.UI.SIZE for height), the width and height have to be explicitly set, in order to avoid the padding.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-07-19T10:54:36.000+0000", "updated": "2012-07-19T10:54:36.000+0000" }, { "id": "211063", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Additional Test Case\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'#fff',\r\n\tlayout:'vertical'\r\n});\r\n\r\nvar image = Ti.UI.createImageView({ \r\n\timage: \"http://www.catravelservices.com/management/hotels/pictures/Mawamba_lodge_nature.jpg\", \r\n\tbackgroundColor : \"red\" \r\n});\r\n\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext:'Results Here'\r\n})\r\n\r\nvar updateLabel = function(){\r\n\tvar size = image.size;\r\n\tlabel.text = 'ImageView size is '+size.width+'x'+size.height;\r\n}\r\n\r\nvar controlsContainer = Ti.UI.createView({\r\n\theight:Ti.UI.SIZE\r\n})\r\n\r\nvar widthControls = Ti.UI.createView({\r\n\twidth:'50%',\r\n\tlayout:'vertical',\r\n\tleft:0,\r\n\theight:Ti.UI.SIZE\r\n})\r\n\r\nvar heightControls = Ti.UI.createView({\r\n\twidth:'50%',\r\n\tlayout:'vertical',\r\n\tright:0,\r\n\theight:Ti.UI.SIZE\r\n})\r\n\r\ncontrolsContainer.add(widthControls);\r\ncontrolsContainer.add(heightControls);\r\n\r\nvar b1 = Ti.UI.createButton({title:'WIDTH=SIZE'})\r\nvar b2 = Ti.UI.createButton({title:'WIDTH=165'})\r\nvar b3 = Ti.UI.createButton({title:'WIDTH=250'})\r\nvar b4 = Ti.UI.createButton({title:'HEIGHT=SIZE'})\r\nvar b5 = Ti.UI.createButton({title:'HEIGHT=50'})\r\nvar b6 = Ti.UI.createButton({title:'HEIGHT=165'})\r\nb1.addEventListener('click',function(e){\r\n\timage.width=Ti.UI.SIZE;\r\n\tsetTimeout(updateLabel,500);\r\n})\r\nb2.addEventListener('click',function(e){\r\n\timage.width=165;\r\n\tsetTimeout(updateLabel,500);\r\n})\r\nb3.addEventListener('click',function(e){\r\n\timage.width=250;\r\n\tsetTimeout(updateLabel,500);\r\n})\r\nb4.addEventListener('click',function(e){\r\n\timage.height=Ti.UI.SIZE;\r\n\tsetTimeout(updateLabel,500);\r\n})\r\nb5.addEventListener('click',function(e){\r\n\timage.height=50;\r\n\tsetTimeout(updateLabel,500);\r\n})\r\nb6.addEventListener('click',function(e){\r\n\timage.height=165;\r\n\tsetTimeout(updateLabel,500);\r\n})\r\nwin.add(image);\r\nwidthControls.add(b1);\r\nwidthControls.add(b2);\r\nwidthControls.add(b3);\r\nheightControls.add(b4);\r\nheightControls.add(b5);\r\nheightControls.add(b6);\r\nwin.add(controlsContainer);\r\nwin.add(label)\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-01T13:08:00.000+0000", "updated": "2012-08-01T13:08:00.000+0000" }, { "id": "211065", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/2665", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-01T13:13:50.000+0000", "updated": "2012-08-01T13:13:50.000+0000" }, { "id": "214330", "author": { "name": "rumbrasas", "key": "rumbrasas", "displayName": "Rima Umbrasas", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Still occurs with:\r\nMobile sdk-2.2.0.v20120810080115\r\nTitanium Studio, build: 2.1.1.201207271312\r\nDevice:\r\nIpad 5.1", "updateAuthor": { "name": "rumbrasas", "key": "rumbrasas", "displayName": "Rima Umbrasas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-14T10:00:55.000+0000", "updated": "2012-08-14T10:00:55.000+0000" }, { "id": "214941", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment used for verification -\r\nTested with Titanium SDK: 2.2.0.v20120816212512\r\nTested with Titanium  Studio: 2.1.1.201207271312\r\nDevice - iOS 5.1 simulator\r\nMachine OS - MAC 10.8", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-17T04:33:59.000+0000", "updated": "2012-08-17T04:33:59.000+0000" }, { "id": "258976", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Still occurs with:\r\n\r\nTested with: \r\nSDK:3.1.2.v20130619101604\r\nAppcelerator Studio: 3.1.1.201306131423\r\nOS: OSX 10.7.5\r\nDevice:iPhoneSimulator(v 6.0), Samsung tab(v 3.2)\r\nXcode: 4.6", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-21T11:20:51.000+0000", "updated": "2013-06-21T11:20:51.000+0000" }, { "id": "261404", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with:\r\n\r\nTitanium Studio:3.1.2.201307091843\r\nTitanium SDK: 3.1.2.v20130710144553\r\nacs:1.0.3\r\nalloy:1.1.3\r\nnpm:1.2.14\r\ntitanium:3.1.1\r\ntitanium-code-processor:1.0.1\r\nOS: OSX 10.8\r\nDevice:iPhone 4(v 5.1), Galaxy Nexus (v 4.0.4)\r\nXcode: 4.5.1", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-11T06:29:17.000+0000", "updated": "2013-07-11T06:29:17.000+0000" }, { "id": "269900", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Still occurs on:\r\n\r\nSDK: 3.1.3.v20130904134612\r\nAppcelertaor Studio: 3.1.3.201308302458\r\nOS: OSX 10.8.4\r\nDevice: iPad3(iOS7)\r\nXcode: 5.0 DP6\r\ntitanium-code-processor@1.0.2\r\nalloy@1.2.2\r\n\r\nPlease find the attached screenshot", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-06T07:19:50.000+0000", "updated": "2013-09-06T07:19:50.000+0000" }, { "id": "269972", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can not reproduce the issue.\r\nPlease attach reproduction steps.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-06T17:24:02.000+0000", "updated": "2013-09-06T17:24:02.000+0000" }, { "id": "295053", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I am able to reproduce this issue. Screen shots are attached as imageview_scalling.png, imageview_scalling2.png\r\n\r\nSteps to reproduce:\r\n1. Run the App mentioned by Vishal in above comment\r\n2. Click Height=50\r\n\r\nExpected:\r\nNo padding should occur, image should fit to the imageview\r\n\r\nActual:\r\nPadding occurs arround the image\r\n\r\nEnvironment used:\r\nDevice : iPod touch 2 , iOS version: 7.1\r\nSDK: 3.2.2.v20140221161255\r\nCLI version : 3.2.1\r\nOS : MAC OSX 10.9\r\nAlloy: 1.3.1\r\nACS: 1.0.12\r\nnpm:1.3.2\r\nAppcelerator Studio, build: 3.2.1.201402061120\r\ntitanium-code-processor: 1.1.0\r\nXCode : 5.1 Beta 5", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-02-28T07:09:59.000+0000", "updated": "2014-02-28T07:09:59.000+0000" }, { "id": "297413", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The issue raised here will be addressed as part of TIMOB-15707", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-15T18:37:19.000+0000", "updated": "2014-03-15T18:37:19.000+0000" }, { "id": "299696", "author": { "name": "keylo e.", "key": "keylo e.", "displayName": "Keylo E.", "active": true, "timeZone": "America/New_York" }, "body": "still happening in 3.2.2, build: 3.3.0.201403281750", "updateAuthor": { "name": "keylo e.", "key": "keylo e.", "displayName": "Keylo E.", "active": true, "timeZone": "America/New_York" }, "created": "2014-04-03T04:52:05.000+0000", "updated": "2014-04-03T04:52:05.000+0000" }, { "id": "299697", "author": { "name": "keylo e.", "key": "keylo e.", "displayName": "Keylo E.", "active": true, "timeZone": "America/New_York" }, "body": "..in mobileweb", "updateAuthor": { "name": "keylo e.", "key": "keylo e.", "displayName": "Keylo E.", "active": true, "timeZone": "America/New_York" }, "created": "2014-04-03T04:52:48.000+0000", "updated": "2014-04-03T04:52:48.000+0000" }, { "id": "416289", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate, please refer to TIMOB-10359.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-29T22:14:20.000+0000", "updated": "2017-03-29T22:14:20.000+0000" } ], "maxResults": 19, "total": 19, "startAt": 0 } } }