{ "id": "169720", "key": "TIMOB-25246", "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": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-09-25T11:54:46.000+0000", "created": "2017-09-07T13:47:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "regression" ], "versions": [ { "id": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" }, { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [ { "id": "55891", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "158179", "key": "TIMOB-22229", "fields": { "summary": "Ti.UI.Picker Test Suite: Titanium.UI.Picker Acceptance TIMOB-2729", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-10-09T15:11:02.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\n*This is a regression but I call it that lightly as in 6.1.2.GA the columns would already start small*\r\n\r\nWhen calling reloadColumn the size of the column shrinks in width with each call\r\n\r\n{code}\r\nvar _window = Ti.UI.createWindow();\r\nvar names = ['Joanie', 'Mickey', 'Jean-Pierre', 'Gustav', 'Raul', 'Mimi', 'Emily', 'Sandra', 'Carrie', 'Chachi'];\r\nvar verbs = ['loves', 'likes', 'visits', 'loathes', 'waves to', 'babysits', 'accompanies', 'teaches', 'announces', 'supports', 'knows', 'high-fives'];\r\n \r\nvar column1 = Ti.UI.createPickerColumn();\r\nfor (var i = 0; i < names.length; i++) {\r\n column1.addRow(Ti.UI.createPickerRow({title: names[i]}));\r\n}\r\nvar column2 = Ti.UI.createPickerColumn();\r\n \r\nfor (i = 0; i < verbs.length; i++) {\r\n column2.addRow(Ti.UI.createPickerRow({title: verbs[i]}));\r\n}\r\nvar column3 = Ti.UI.createPickerColumn();\r\nfor (i = (names.length - 1); i >= 0; i--) {\r\n column3.addRow(Ti.UI.createPickerRow({title: names[i]}));\r\n}\r\nvar picker = Ti.UI.createPicker({columns: [column1, column2, column3]});\r\n_window.add(picker);\r\nvar btnRemove = Ti.UI.createButton({\r\n left: '5dp',\r\n height: '40dp',\r\n top: '100dp',\r\n title: 'reload'\r\n});\r\nbtnRemove.addEventListener('click', function() {\r\n picker.reloadColumn(picker.columns[0]);\r\n console.log(picker.columns)\r\n});\r\n_window.add(btnRemove);\r\n_window.open()\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n1. Add the code above to an existing app.js\r\n2. Click reload multiple times\r\n\r\nh5.Actual\r\n\r\nColumn shrinks in width\r\n\r\nh5.Expected\r\n\r\nColumn width should stay constant", "attachment": [], "flagged": false, "summary": "Windows: PickerColumn shrinks after reload", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Ti SDK: 6.2.0.v20170906064110, 7.0.0.v20170906135653", "closedSprints": [ { "id": 948, "state": "closed", "name": "2017 Sprint 19 SDK", "startDate": "2017-09-10T21:24:51.562Z", "endDate": "2017-09-24T21:24:00.000Z", "completeDate": "2017-09-25T17:49:27.460Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "427913", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1110", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-09-14T23:21:56.000+0000", "updated": "2017-09-14T23:21:56.000+0000" }, { "id": "428591", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "6_3_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1124", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-09-29T00:03:00.000+0000", "updated": "2017-09-29T00:03:00.000+0000" }, { "id": "428825", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified in 6.3.0.v20171006185117 and 7.0.0.v20171009065347", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-10-09T15:10:03.000+0000", "updated": "2017-10-09T15:10:03.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }