{ "id": "63041", "key": "TIMOB-2409", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "2011-04-15T03:18:55.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "core", "parity" ], "versions": [], "issuelinks": [ { "id": "26882", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "103119", "key": "AC-3163", "fields": { "summary": "iOS: Set ContentMode of ImageView", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": null, "updated": "2020-08-23T17:22:04.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "It should be possible to set ContentModes (http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIView_Class/UIView/UIView.html> on UIViews and ImageViews.", "attachment": [], "flagged": false, "summary": "iOS: Expose method to set UIViewContentModes on views", "creator": { "name": "guilhermechapiewski", "key": "guilhermechapiewski", "displayName": "Guilherme Chapiewski", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "guilhermechapiewski", "key": "guilhermechapiewski", "displayName": "Guilherme Chapiewski", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128385", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Possibly something to discuss about layout. Should be handled by 'auto'?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:18:56.000+0000", "updated": "2014-08-26T14:32:29.000+0000" }, { "id": "215885", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Marked as a feature request instead of bug.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-23T14:04:32.000+0000", "updated": "2012-08-23T14:04:32.000+0000" }, { "id": "320353", "author": { "name": "mattapperson", "key": "mattapperson", "displayName": "me@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This feature is something that is honestly very basic, esp when it comes to imageViews. It would be great to not need to add the overhead to my app of multiple imagviews in order to clip images to fit a given size without stretching and distortion.\r\n\r\nThis should be an API ticket though to also implement http://developer.android.com/reference/android/widget/ImageView.ScaleType.html for android image views\r\n\r\nI would be happy to do a PR if we can agree on an API for this.", "updateAuthor": { "name": "mattapperson", "key": "mattapperson", "displayName": "me@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-26T14:35:00.000+0000", "updated": "2014-08-26T14:35:00.000+0000" }, { "id": "320357", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~mattapperson] Thank you. If you'd like to propose an API, I can bring it up for discussion.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-26T14:37:56.000+0000", "updated": "2014-08-26T14:37:56.000+0000" }, { "id": "320359", "author": { "name": "mattapperson", "key": "mattapperson", "displayName": "me@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I think for API parity, we should keep the API on the ImageView where it is (IMHO at least) the most needed. \r\nI think it should be done via a property of scaleType, with values being constants.\r\nThe constants I would think should be:\r\n\r\nCENTER, \r\nCENTER_CROP, \r\nCENTER_INSIDE, \r\nFIT_CENTER, \r\nFIT_XY\r\n\r\nWith iOS also having:\r\n\r\nTOP_LEFT\r\nTOP_RIGHT\r\nBOTTOM_LEFT\r\nBOTTOM_RIGHT\r\nLEFT\r\nRIGHT\r\nTOP\r\nBOTTOM\r\n\r\nThink that should cover it... dont think I missed anything...", "updateAuthor": { "name": "mattapperson", "key": "mattapperson", "displayName": "me@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-26T14:45:47.000+0000", "updated": "2014-08-26T14:45:47.000+0000" }, { "id": "353952", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "For iOS there's a module that implements these:\r\nhttps://github.com/pegli/TiUIEx/blob/master/mobile/iphone/documentation/index.md#imageview\r\n\r\nThis would be a really welcome feature.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-06-01T07:12:01.000+0000", "updated": "2015-06-01T07:12:01.000+0000" }, { "id": "369436", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "It would be good to do the for Android as well:\r\nhttp://developer.android.com/reference/android/widget/ImageView.ScaleType.html\r\n\r\nI'm sure there's something like this for Windows as wel", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-11-09T19:23:05.000+0000", "updated": "2015-11-09T19:23:05.000+0000" }, { "id": "369529", "author": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "body": "I have support for all ContentModes on iOS in my module here:\r\nhttps://github.com/viezel/NappImageView/blob/master/iphone/Classes/DkNappImageviewModule.m#L83-L95\r\n\r\nYou are free to implement this in the SDK. ", "updateAuthor": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-10T09:25:30.000+0000", "updated": "2015-11-10T09:25:30.000+0000" }, { "id": "369530", "author": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "body": "I see mpociot did a fork of my module and started on an android version: https://github.com/mpociot/NappImageView/commit/cc1235b77df327bf984cbc6b65b1f1e4190c4f87", "updateAuthor": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-10T09:27:19.000+0000", "updated": "2015-11-10T09:27:19.000+0000" }, { "id": "378510", "author": { "name": "yomybaby", "key": "yomybaby", "displayName": "Jong Eun Lee", "active": true, "timeZone": "Asia/Tokyo" }, "body": "I thought that this is very important feature like a requirement.\r\nI'm hoping that next version of titanium SDK has this feature for iOS and Android.", "updateAuthor": { "name": "yomybaby", "key": "yomybaby", "displayName": "Jong Eun Lee", "active": true, "timeZone": "Asia/Tokyo" }, "created": "2016-03-02T22:54:16.000+0000", "updated": "2016-03-02T22:54:16.000+0000" }, { "id": "456553", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "Andrea Vitale has a nice module for this, but it would be awesome to have this in native Ti ImageViews for both iOS and Android.\r\n\r\nhttps://github.com/AndreaVitale/av.imageview", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2020-08-23T17:22:04.000+0000", "updated": "2020-08-23T17:22:04.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }