{ "id": "155330", "key": "TIMOB-20518", "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": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-03-11T00:45:16.000+0000", "created": "2016-03-03T19:36:08.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios" ], "versions": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "issuelinks": [ { "id": "50986", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "155139", "key": "TIMOB-20464", "fields": { "summary": "iOS: Picker does not accept percent as height/width", "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": "2018-08-06T17:57:37.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": "h2. Problem\r\n\r\nPicker with `width: Ti.UI.FILL` is not being shown.\r\n\r\nh2. Test case\r\n\r\nUsing almost the same code as in KitchenSink (https://github.com/appcelerator/KitchenSink/blob/stable/Resources%2Fui%2Fcommon%2Fcontrols%2Fpicker_basic.js):\r\n{code:lang=javascript|title=app.js}\r\n var win = Ti.UI.createWindow({\r\n width: Ti.UI.FILL,\r\n title:'title'\r\n });\r\n win.backgroundColor = 'black';\r\n\r\n var picker = Ti.UI.createPicker({\r\n width: Ti.UI.FILL\r\n });\r\n\r\n if (Ti.Platform.osname === 'tizen') {\r\n // On Mobile Web/Tizen, by default, the picker fills the entire view it is contained,\r\n // unless the size is provided.\r\n picker.width = 100;\r\n picker.height = 110;\r\n picker.color = '#fc0';\r\n }\r\n\r\n var column = Ti.UI.createPickerColumn();\r\n column.addRow(Ti.UI.createPickerRow({title:'Bananas',custom_item:'b'}));\r\n column.addRow(Ti.UI.createPickerRow({title:'Strawberries',custom_item:'s'}));\r\n column.addRow(Ti.UI.createPickerRow({title:'Mangos',custom_item:'m'}));\r\n column.addRow(Ti.UI.createPickerRow({title:'Grapes',custom_item:'g'}));\r\n\r\n picker.add(column);\r\n\r\n // turn on the selection indicator (off by default)\r\n picker.selectionIndicator = true;\r\n\r\n win.add(picker);\r\n\r\n var label = Ti.UI.createLabel({\r\n text:'Make a move',\r\n top:10,\r\n width:'auto',\r\n height:'auto',\r\n textAlign:'center',\r\n color:'white'\r\n });\r\n win.add(label);\r\n\r\n\r\n picker.addEventListener('change',function(e)\r\n {\r\n Ti.API.info(\"You selected row: \"+e.row+\", column: \"+e.column+\", custom_item: \"+e.row.custom_item);\r\n label.text = \"row index: \"+e.rowIndex+\", column index: \"+e.columnIndex;\r\n });\r\n win.open();\r\n{code}\r\n\r\nh2. Expected result:\r\n\r\n!Simulator Screen Shot 3 mar 2016 4.38.50 p.m..png|thumbnail!\r\n\r\nh2. Actual result:\r\n\r\n!Simulator Screen Shot 3 mar 2016 4.21.14 p.m..png|thumbnail!", "attachment": [ { "id": "58412", "filename": "Simulator Screen Shot 3 mar 2016 4.21.14 p.m..png", "author": { "name": "inakiabt", "key": "inakiabt", "displayName": "Inaki Abete", "active": true, "timeZone": "America/Argentina/Buenos_Aires" }, "created": "2016-03-03T19:29:21.000+0000", "size": 25751, "mimeType": "image/png" }, { "id": "58413", "filename": "Simulator Screen Shot 3 mar 2016 4.22.01 p.m..png", "author": { "name": "inakiabt", "key": "inakiabt", "displayName": "Inaki Abete", "active": true, "timeZone": "America/Argentina/Buenos_Aires" }, "created": "2016-03-03T19:29:20.000+0000", "size": 45341, "mimeType": "image/png" }, { "id": "58414", "filename": "Simulator Screen Shot 3 mar 2016 4.38.50 p.m..png", "author": { "name": "inakiabt", "key": "inakiabt", "displayName": "Inaki Abete", "active": true, "timeZone": "America/Argentina/Buenos_Aires" }, "created": "2016-03-03T19:39:13.000+0000", "size": 38240, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Picker is not being shown with width: Ti.UI.FILL", "creator": { "name": "inakiabt", "key": "inakiabt", "displayName": "Inaki Abete", "active": true, "timeZone": "America/Argentina/Buenos_Aires" }, "subtasks": [], "reporter": { "name": "inakiabt", "key": "inakiabt", "displayName": "Inaki Abete", "active": true, "timeZone": "America/Argentina/Buenos_Aires" }, "closedSprints": [ { "id": 614, "state": "closed", "name": "2016 Sprint 07 SDK", "startDate": "2016-03-26T00:38:56.432Z", "endDate": "2016-04-09T00:38:00.000Z", "completeDate": "2016-04-11T04:41:08.231Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "379483", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR : https://github.com/appcelerator/titanium_mobile/pull/7827.\r\n\r\nDemo code \r\n{code:javaScript}\r\n var win = Ti.UI.createWindow({\r\n width: Ti.UI.FILL,\r\n title:'title'\r\n });\r\n win.backgroundColor = 'black';\r\n \r\n var picker = Ti.UI.createPicker({\r\n width: Ti.UI.FILL,\r\n height:700\r\n });\r\n \r\n if (Ti.Platform.osname === 'tizen') {\r\n // On Mobile Web/Tizen, by default, the picker fills the entire view it is contained,\r\n // unless the size is provided.\r\n picker.width = 100;\r\n picker.height = 110;\r\n picker.color = '#fc0';\r\n }\r\n \r\n var column = Ti.UI.createPickerColumn();\r\n column.addRow(Ti.UI.createPickerRow({title:'Bananas',custom_item:'b'}));\r\n column.addRow(Ti.UI.createPickerRow({title:'Strawberries',custom_item:'s'}));\r\n column.addRow(Ti.UI.createPickerRow({title:'Mangos',custom_item:'m'}));\r\n column.addRow(Ti.UI.createPickerRow({title:'Grapes',custom_item:'g'}));\r\n \r\n picker.add(column);\r\n \r\n // turn on the selection indicator (off by default)\r\n picker.selectionIndicator = true;\r\n \r\n win.add(picker);\r\n \r\n var label = Ti.UI.createLabel({\r\n text:'Make a move',\r\n top:10,\r\n width:'auto',\r\n height:'auto',\r\n textAlign:'center',\r\n color:'white'\r\n });\r\n win.add(label);\r\n \r\n \r\n picker.addEventListener('change',function(e)\r\n {\r\n Ti.API.info(\"You selected row: \"+e.row+\", column: \"+e.column+\", custom_item: \"+e.row.custom_item);\r\n label.text = \"row index: \"+e.rowIndex+\", column index: \"+e.columnIndex;\r\n });\r\n win.open();\r\n{code}", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-11T00:43:00.000+0000", "updated": "2016-03-11T00:43:00.000+0000" }, { "id": "391214", "author": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Team, \r\n\r\nI'm still able to reproduce this issue on Ti SDK 5.3.0 GA. Can any please recheck it again?", "updateAuthor": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-21T18:08:27.000+0000", "updated": "2016-07-21T18:08:27.000+0000" }, { "id": "391219", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~speedyankur@gmail.com] HI, could you please try it with 5.4.0 using the code provided by the ticket creator, the picker width is sized properly for me like [so|http://imgur.com/a/6nCnL]. ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-21T18:26:21.000+0000", "updated": "2016-07-21T18:26:21.000+0000" }, { "id": "440388", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed tickets from 2016 and earlier. If this ticket should not have been closed, please reopen it.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:57:37.000+0000", "updated": "2018-08-06T17:57:37.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }