{ "id": "155139", "key": "TIMOB-20464", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-06-09T23:30:45.000+0000", "created": "2016-02-25T19:08:25.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "AL-5.4.0", "picker", "qe-5.2.0" ], "versions": [], "issuelinks": [ { "id": "51756", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "160349", "key": "TIMOB-23413", "fields": { "summary": "Picker Width Sizing Bug on iOS", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "50986", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "155330", "key": "TIMOB-20518", "fields": { "summary": "iOS: Picker is not being shown with width: Ti.UI.FILL", "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 } } } } ], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-06-14T16:56:09.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": "Picker does not accept percent as height/width it needs pixels.\r\n\r\nhttp://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Picker-property-height\r\n\r\n*Steps to reproduce:* \r\nAdd a picker to a view and set the height/width as a percentage or use the app.js below \r\n\r\n*Actual :*\r\nThe picker does not use the percentage as the height/width.\r\n\r\n!Screen Shot 2016-02-25 at 9.21.27 AM.png|thumbnail!\r\n\r\n*Expected:*\r\nThe Picker should either accept height/width as a percentage or scaling the picker should use pixels\r\n\r\n!Screen Shot 2016-02-25 at 9.19.35 AM.png|thumbnail!\r\n\r\n*App.js*\r\n{code:javascript}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow({\r\n exitOnClose: true,\r\n layout: 'vertical'\r\n});\r\n\r\nvar picker = Ti.UI.createPicker({\r\n type:Ti.UI.PICKER_TYPE_DATE,\r\n minDate:new Date(2009,0,1),\r\n maxDate:new Date(2014,11,31),\r\n value:new Date(2014,3,12),\r\n top:50,\r\n height:\"100%\",\r\n width:\"100%\"\r\n});\r\n\r\nwin.add(picker);\r\nwin.open();\r\n\r\npicker.addEventListener('change',function(e){\r\n Ti.API.info(\"User selected date: \" + e.value.toLocaleString());\r\n});\r\n{code}", "attachment": [ { "id": "58342", "filename": "Screen Shot 2016-02-25 at 9.19.35 AM.png", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-02-25T17:21:59.000+0000", "size": 63126, "mimeType": "image/png" }, { "id": "58341", "filename": "Screen Shot 2016-02-25 at 9.21.27 AM.png", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-02-25T17:21:59.000+0000", "size": 49618, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Picker does not accept percent as height/width", "creator": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "environment": "Mac OSX El Capitan 10.11.3\r\nStudio: 4.5.0.201602170821\r\nTi SDK: 5.2.0.GA\r\nAppc NPM: 4.2.3\r\nAppc CLI: 5.2.0.GA\r\nXcode 7.2\r\nNode v4.2.4", "closedSprints": [ { "id": 597, "state": "closed", "name": "2016 Sprint 06 SDK", "startDate": "2016-03-12T01:30:59.982Z", "endDate": "2016-03-26T00:30:00.000Z", "completeDate": "2016-03-28T03:38:09.726Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "378028", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Use code provided to test.\r\nPR: https://github.com/appcelerator/titanium_mobile/pull/7781/files\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n exitOnClose: true,\r\n backgroundColor: 'white'\r\n});\r\n \r\n var picker = Ti.UI.createPicker({\r\n type:Ti.UI.PICKER_TYPE_DATE,\r\n minDate:new Date(2009,0,1),\r\n maxDate:new Date(2014,11,31),\r\n value:new Date(2014,3,12),\r\n top:50,\r\n height:'100%',\r\n width:'100%',\r\n backgroundColor:'Blue'\r\n});\r\n\r\nfunction postLayout() { \r\n\tconsole.log('postlayout');\r\n\tTi.API.info(\"Height\", picker.getHeight());\r\n\tTi.API.info(\"Width\", picker.getWidth());\r\n\tpicker.removeEventListener('postlayout',postLayout);\r\n}\r\n \r\npicker.addEventListener('postlayout',postLayout);\r\n\r\n \r\nwin.add(picker);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-02-27T00:20:12.000+0000", "updated": "2016-02-29T19:50:57.000+0000" }, { "id": "388304", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Closing ticket as \"Won't Fix\". After discussion with the developers assigned to this ticket, the original fix was causing more issues than it resolved, and was ultimately reverted. ", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-14T16:54:59.000+0000", "updated": "2016-06-14T16:55:28.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }