{ "id": "150494", "key": "TIMOB-19370", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2018-07-20T21:04:38.000+0000", "created": "2015-08-18T18:02:26.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "IOS", "Picker", "width" ], "versions": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" }, { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [], "assignee": null, "updated": "2018-08-06T17:52:08.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": "h6.Issue Description\r\n\r\nWhen the user set percent units in the column width property, the columns set by default equal sizes. For example, if the Picker have 2 columns and the first column have a width of 75% and the other column have 20%, the percentage applied is a percentage of their 50% widths. So the columns actually show less information instead of splitting up the whole width of the screen in the desired (75% / 25%) proportions.\r\n\r\nh6.Expected behavior\r\nThe percentage of each column should be the percentage of the picker width\r\n\r\nh6.Steps to Replicate: \r\n1. Create a new titanium classic project \r\n2. Grab the app.js file\r\n3. Replace the code with the testcase code \r\n4. Run the application on iOS simulator\r\n\r\nh6.Test Case\r\n\r\n{code}\r\n\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 width: \"100%\",\r\n useSpinner: true\r\n});\r\npicker.selectionIndicator = true;\r\n\r\nvar fruit = [ 'Bananas', 'Strawberries', 'Mangos', 'Grapes' ];\r\nvar color = [ 'red', 'green', 'blue', 'orange' ];\r\n\r\nvar column1 = Ti.UI.createPickerColumn({\r\n\t\twidth:\"30%\"\r\n\t});\r\n\r\nfor(var i=0, ilen=fruit.length; i