{ "id": "153124", "key": "TIMOB-19991", "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": null, "resolutiondate": null, "created": "2015-11-16T14:43:31.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-12-05T12:40:01.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": "With TIMOB-19203 we now support resizable pickers, but the following sample demonstrates that the height cannot be changed after layout. This might be either a code or documentation bug.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'red'\r\n});\r\n\r\nvar picker = Ti.UI.createPicker({\r\n\ttop: 100,\r\n\ttype: Ti.UI.PICKER_TYPE_DATE,\r\n\theight: 50\r\n});\r\n\r\nwin.add(picker);\r\n\r\nvar picker2 = Ti.UI.createPicker({\r\n\ttop: 200,\r\n\ttype: Ti.UI.PICKER_TYPE_DATE\r\n});\r\n\r\npicker2.height = 50;\r\n\r\nwin.add(picker2);\r\n\r\nvar picker3 = Ti.UI.createPicker({\r\n\ttop: 300,\r\n\ttype: Ti.UI.PICKER_TYPE_DATE\r\n});\r\n\r\npicker3.addEventListener('postlayout', function(e) {\r\n\tconsole.log('postlayout');\r\n\r\n\tpicker3.height = 50;\r\n});\r\n\r\nwin.add(picker3);\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "57456", "filename": "Simulator Screen Shot 16 Nov 2015 15.38.44.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-11-16T14:43:22.000+0000", "size": 54905, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Pickers cannot be resized after layout", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 5.1.0.v20151113005238", "comment": { "comments": [ { "id": "370355", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Is it only not resizable in the postlayout event or always after the view is added? ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-16T16:27:59.000+0000", "updated": "2015-11-16T16:27:59.000+0000" }, { "id": "370356", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "It can be set after creating:adding it but not after the window is open and the picker layed out.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-11-16T16:43:08.000+0000", "updated": "2015-11-16T16:43:08.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }