{ "id": "153357", "key": "TIMOB-20028", "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": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-12-11T18:12:20.000+0000", "created": "2015-11-21T10:49:02.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "picker", "qe-5.2.0" ], "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": "2016-01-22T00:42:15.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": "Since iOS 9 it is possible to set a picker's height and we support that in Titanium 5.1.0.\r\n\r\nHowever, on iOS 8 the layout seems to use the set height, resulting in the standard-height picker to overflow. See screenshots.\r\n\r\nOn iOS 8 we should use the standard-height to do the layout. This should also be reflected when you get the height via the {{size}} and {{rect}} properties.\r\n\r\nFound by [~ewieber] and demonstrated in the Ti 5.1.0 sample app\r\nhttps://github.com/appcelerator-developer-relations/appc-sample-ti510/issues/3", "attachment": [ { "id": "57744", "filename": "Simulator Screen Shot 11 Dec 2015 09.39.49.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-12-11T08:45:21.000+0000", "size": 113889, "mimeType": "image/png" }, { "id": "57582", "filename": "Simulator Screen Shot 21 Nov 2015 11.40.07.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-11-21T10:48:58.000+0000", "size": 124565, "mimeType": "image/png" }, { "id": "57581", "filename": "Simulator Screen Shot 21 Nov 2015 11.41.20.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-11-21T10:48:58.000+0000", "size": 83503, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Layout fails on iOS8 with iOS9-only Picker height set", "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.GA\r\niOS 8.4 Sim", "closedSprints": [ { "id": 536, "state": "closed", "name": "2015 Sprint 25 SDK", "startDate": "2015-12-05T01:30:40.415Z", "endDate": "2015-12-19T01:30:00.000Z", "completeDate": "2015-12-29T03:19:42.127Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "372400", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Hey [~apetkov], so on iOS 8 the picker will now appear full height and not overflow? I think that's fine.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-12-08T08:35:25.000+0000", "updated": "2015-12-08T08:35:25.000+0000" }, { "id": "372438", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The picker is full height on that image , the problem is that prior to iOS 9 it's height cant be set. So it will always be the same size, thats why it appears to be overflowing as it's overlapping the labels. ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-12-08T17:43:51.000+0000", "updated": "2015-12-08T17:43:51.000+0000" }, { "id": "372606", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "OK, so with this fix if I set a height on the picker it will be ignored on iOS 8 and the picker will display in standard height, without overflowing the frame? That is, assuming the layout is vertical of course. If it's absolute and you position the view below it using a {{top}} that expects the picker to be the height you've set it to be then it will still appear over the picker.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-12-10T08:56:24.000+0000", "updated": "2015-12-10T08:56:24.000+0000" }, { "id": "372679", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Looks great now (see attached screenshot)", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-12-11T08:45:28.000+0000", "updated": "2015-12-11T08:45:47.000+0000" }, { "id": "372695", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Great, thanks Fokke! ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-12-11T18:11:25.000+0000", "updated": "2015-12-11T18:11:25.000+0000" }, { "id": "375107", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verifed as fixed, logged height when app builts to 8.4 is {{216}}, scale of picker on iOS9 can be changed appropriately.\r\n\r\nTested on:\r\niPhone 6s Plus Device (9.2) & iPhone 6 Plus Device (8.4) \r\nMac OSX El Capitan 10.11 (15A284)\r\nTi SDK: 5.2.0.v20160114021251\r\nAppc NPM: 4.2.3-1\r\nApp CLI: 5.2.0-231\r\nXcode 7.2\r\nNode v4.2.3\r\n\r\n*Closing Ticket.*\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-01-21T22:54:03.000+0000", "updated": "2016-01-21T22:54:03.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }