{ "id": "164481", "key": "TIMOB-24130", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-02-09T02:10:42.000+0000", "created": "2016-11-10T15:57:45.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-6.0.0" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [ { "id": "53443", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "158385", "key": "TIMOB-22435", "fields": { "summary": "Ti.UI.TableView Test Suite: Titanium.UI.TableView Acceptance TIMOB-8709", "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 } } } }, { "id": "53478", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "158429", "key": "TIMOB-22479", "fields": { "summary": "Ti.UI.TableView Test Suite: Titanium.UI.TableView TIMOB-11765", "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-02-09T23:28: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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\nWhen adding a label to a tableviewrow the label does not get sized correctly for the text\r\n\r\n{code}\r\nvar _window = Ti.UI.createWindow();\r\nvar row1 = Ti.UI.createTableViewRow({\r\n // height:'auto',\r\n height: Ti.UI.SIZE\r\n\r\n});\r\nvar label1 = Ti.UI.createLabel({\r\n // height:'auto',\r\n top: 0,\r\n height: Ti.UI.SIZE,\r\n text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'\r\n});\r\n\r\nrow1.add(label1);\r\n\r\nvar row2 = Ti.UI.createTableViewRow({\r\n // height:'auto',\r\n height: Ti.UI.SIZE\r\n});\r\nvar label2 = Ti.UI.createLabel({\r\n // height:'auto',\r\n height: Ti.UI.SIZE,\r\n top: 0,\r\n text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'\r\n});\r\n\r\nrow2.add(label2);\r\n\r\n\r\nvar table = Ti.UI.createTableView({\r\n index: [{\r\n index: 0,\r\n title: 'a'\r\n }, {\r\n index: 1,\r\n title: 'b'\r\n }],\r\n data: [row1, row2]\r\n});\r\n\r\n_window.add(table);\r\n_window.open();\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Add the code above to an existing app.js and build for Windows\r\n# Observe\r\n\r\nh5.Actual result\r\n\r\nLabel is not correctly sized\r\n\r\nh5.Expected result\r\n\r\nLabel should be correctly sized", "attachment": [ { "id": "61540", "filename": "6.0.0.GA.png", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-09T23:21:25.000+0000", "size": 58469, "mimeType": "image/png" }, { "id": "61541", "filename": "6.1.0.v20170209111025.png", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-09T23:21:25.000+0000", "size": 63333, "mimeType": "image/png" }, { "id": "61420", "filename": "ios.png", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-02-01T13:50:01.000+0000", "size": 147700, "mimeType": "image/png" }, { "id": "61421", "filename": "windows.png", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-02-01T13:39:03.000+0000", "size": 41771, "mimeType": "image/png" } ], "flagged": false, "summary": "Windows: Labels in a tableviewrow are not sized correctly", "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": "OS: Microsoft Windows 10 Pro 10.0.14393\r\nAppc core: 6.0.0-69\r\nAppc NPM: 4.2.8-9\r\nTi SDK: 6.0.0.v20161109075403", "closedSprints": [ { "id": 808, "state": "closed", "name": "2017 Sprint 03 SDK", "startDate": "2017-01-28T21:12:30.215Z", "endDate": "2017-02-12T21:12:00.000Z", "completeDate": "2017-02-12T23:37:14.667Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "405811", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~eharris] Could you help to make the issue clearer? What do you mean by \"correctly sized\" in particular? I see the issue is that right-edge of the Label is cut off and character is not displayed partially, but I would like to make sure what needs to be fixed in particular for this ticket, just in case. Thanks!", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-31T03:09:15.000+0000", "updated": "2017-01-31T03:09:15.000+0000" }, { "id": "405821", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~kota] Yeah this ticket is awful.. sorry about that :). Yeah the issue was for the sizing of the label and the text being cut off, I'm attaching screenshots of Windows and iOS as a reference for the future", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-01-31T10:06:02.000+0000", "updated": "2017-01-31T10:06:02.000+0000" }, { "id": "406034", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/942", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-02-01T13:17:45.000+0000", "updated": "2017-02-01T13:17:45.000+0000" }, { "id": "406786", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with the test case provided, text is no longer cut off and characters are displayed correctly.\r\n\r\n6.0.0.GA:\r\n!6.0.0.GA.png|thumbnail!\r\n\r\n6.1.0.v20170209111025:\r\n!6.1.0.v20170209111025.png|thumbnail!\r\n\r\n*Environment *\r\n{code:java}\r\nWindows Emulator: 10.0.14393\r\nPhone : Lumia 640 LTE (RM-1073)\r\nOperating System:\r\nName = Microsoft Windows 10 Pro\r\nVersion = 10.0.14393\r\nArchitecture = 32bit\r\n# CPUs = 4\r\nMemory = 17034395648\r\n \r\nNode.js:\r\nNode.js Version = 4.6.0 \r\nnpm Version = 2.15.9\r\n \r\nTitanium SDK:\r\nSDK Version = 6.1.0.v20170209111025{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-09T23:28:08.000+0000", "updated": "2017-02-09T23:28:08.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }