{ "id": "93201", "key": "TIMOB-10045", "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": "2012-06-14T01:18:29.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:23.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h4. Problem\r\nIn the docs, it is not stated that we support the \"transform\" property of a picker type view. Though when you set the property, the picker does scale to the desired size. On iphone, this method works without a hitch. On android however, only when you scale larger than the default picker size, the pixels seem to be stuck at the bottom and the words stick to the picker as the options are scrolled through (see attached picture). \r\n\r\nh4. Desired Result\r\nThe picker should scale correctly without leaving static pixels when scrolled through. This behavior should also be added to the docs to show that we support this method of resizing the picker.\r\n\r\n{code:title=app.js|borderStyle=solid}\r\nvar fruit = ['Bananas', 'Grapes', 'Blueberries', 'Strawberries', 'Bananas', 'Grapes', 'Blueberries', 'Strawberries'];\r\nvar color = ['blue', 'red', 'yellow', 'white', 'blue', 'red', 'yellow', 'white'];\r\n \r\nvar column1 = Ti.UI.createPickerColumn();\r\nfor (var i = 0, ilen = fruit.length; i < ilen; i++) {\r\n var row = Ti.UI.createPickerRow({\r\n title : fruit[i]\r\n });\r\n column1.addRow(row);\r\n}\r\n \r\nvar column2 = Ti.UI.createPickerColumn();\r\nfor (var i = 0, ilen = color.length; i < ilen; i++) {\r\n var row = Ti.UI.createPickerRow({\r\n title : color[i]\r\n });\r\n column2.addRow(row);\r\n}\r\n \r\nvar t = Ti.UI.create2DMatrix();\r\nt = t.scale(1.3);\r\nvar picker = Ti.UI.createPicker({\r\n selectionIndicator : true,\r\n useSpinner : true,\r\n visibleItems : 7,\r\n transform : t\r\n});\r\npicker.add(column1);\r\npicker.add(column2);\r\n \r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'white',\r\n exitOnClose : true,\r\n fullscreen : false,\r\n title : 'Use picker to make selection'\r\n});\r\nwin.add(picker);\r\nwin.open();\r\n{code}\r\n\r\nh4. Steps to Reproduce\r\n1. Copy and paste the code above into Titanium Studio\r\n2. Run the code on android emulator or device\r\n3. Take note of stuck pixels at bottom of picker\r\n4. Run code on iPhone simulator to see desired effect\r\n5. Change scale factor to .7 (anything below 1 will be fine) and observe correct behavior on both android and iOS\r\n", "attachment": [ { "id": "28339", "filename": "bug.png", "author": { "name": "volli", "key": "volli", "displayName": "Reto Vollenweider", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-14T01:18:29.000+0000", "size": 182950, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Scaling Picker with 2DMatrix", "creator": { "name": "volli", "key": "volli", "displayName": "Reto Vollenweider", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "volli", "key": "volli", "displayName": "Reto Vollenweider", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium 2.0.2, Android, Windows 7", "comment": { "comments": [ { "id": "208521", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reto,\r\n\r\nI have tested this code and have reported this as a new feature request, rather than a bug. The reason for this, if you look in the docs, we do not currently support scaling the size of the picker using the transform property. Thank you for bringing this to our attention. Please keep a watch on the bug, as will I and I will be sure to follow up when the this feature is added.\r\n\r\nRegards,\r\n\r\nCarter", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-19T14:55:23.000+0000", "updated": "2012-07-19T14:55:23.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }