{ "id": "166220", "key": "TIMOB-24423", "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": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-03-05T15:14:22.000+0000", "created": "2017-02-22T11:11:32.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "label", "layout", "table", "windows" ], "versions": [ { "id": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "issuelinks": [ { "id": "57090", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "172812", "key": "TIMOB-26689", "fields": { "summary": "Windows: Wrong height for TableViewRow with Label", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-03-05T15:14:23.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": "Label View and Table Row View do not respect the layout and horizontal positions required.\r\nTable View Row seems to have a margin on the left and the right sides.\r\nThe width to 100% of the Label within the Rows seems to be greater than the total width of the screen.\r\n\r\n*Test Code*\r\n{noformat}\r\n\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar tableView = Ti.UI.createTableView({\r\n\twidth: '100%',\r\n\tleft: 0,\r\n\tbackgroundColor: 'transparent',\r\n\tseparatorStyle: Ti.UI.TABLE_VIEW_SEPARATOR_STYLE_NONE,\r\n\tdata: [],\r\n\tborderWidth: 1, borderColor: '#FFF',\r\n});\r\nwin.add(tableView);\r\n\r\n\r\n\r\nfunction createRow()\r\n{\r\n\t\r\n\tvar uid = (new Date()).getTime();\r\n\t\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\theight: Ti.UI.SIZE,\r\n\t\tselectedBackgroundColor: '#FFFFFF',\r\n\t\tlayout: \"vertical\",\r\n\t\tborderWidth: 1, borderColor: '#F0F',\r\n\t\twidth: '100%',\r\n\t\tleft: 0\r\n\t});\r\n\t\r\n\tvar label1 = Ti.UI.createLabel({\r\n\t\twidth: '80%',\r\n\t\tleft: 0,\r\n\t\ttext: 'Test 1 ' + uid,\r\n\t\theight: Ti.UI.SIZE,\r\n\t\tfont: {\r\n\t\t\tfontSize: 20\r\n\t\t},\r\n\t\ttextAlign: 'left',\r\n\t\tborderWidth: 1, borderColor: '#FF0'\r\n\t});\r\n\trow.add(label1);\r\n\t\r\n\tvar label2 = Ti.UI.createLabel({\r\n\t\twidth: '80%',\r\n\t\tright: 0,\r\n\t\ttext: 'Test 2 ' + uid + ' truncated',\r\n\t\theight: Ti.UI.SIZE,\r\n\t\tfont: {\r\n\t\t\tfontSize: 15\r\n\t\t},\r\n\t\ttextAlign: 'right',\r\n\t\tborderWidth: 1, borderColor: '#0F0'\r\n\t});\r\n\trow.add(label2);\r\n\t\r\n\treturn row;\r\n}\r\n\r\n\r\nwin.addEventListener('open', function()\r\n{\r\n\tvar data = [];\r\n\t\r\n\tdata.push(createRow());\r\n\tdata.push(createRow());\r\n\tdata.push(createRow());\r\n\t\r\n\ttableView.setData(data);\r\n});\r\n\r\nwin.open();\r\n\r\n\r\n\r\n{noformat}\r\n", "attachment": [ { "id": "61663", "filename": "Schermata 2017-02-22 alle 12.03.11.png", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-02-22T11:05:08.000+0000", "size": 44351, "mimeType": "image/png" } ], "flagged": false, "summary": "Windows Phone: TableViewRow and Label layout not respected", "creator": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "environment": "OS: Windows 10 Pro\r\nEmulator: Mobile Emulator 10.0.14393.0 720p 5 inch 1GB\r\nStudio: 4.8.0.201612050850\r\nappc 6.1.0\r\nTitanium SDK 6.1.0.v20170202120400", "closedSprints": [ { "id": 1106, "state": "closed", "name": "2019 Sprint 1", "startDate": "2018-12-31T19:39:58.070Z", "endDate": "2019-01-11T19:39:00.000Z", "completeDate": "2019-01-14T17:17:47.552Z", "originBoardId": 114 }, { "id": 1109, "state": "closed", "name": "2019 Sprint 3", "startDate": "2019-01-28T17:38:43.075Z", "endDate": "2019-02-09T17:38:00.000Z", "completeDate": "2019-02-08T21:37:29.498Z", "originBoardId": 114 }, { "id": 1118, "state": "closed", "name": "2019 Sprint 5", "startDate": "2019-02-24T18:36:06.435Z", "endDate": "2019-03-08T18:36:00.000Z", "completeDate": "2019-03-07T22:19:47.057Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "408022", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "Hello\r\nSometimes I found that the items in the table row disappear (Labels and simple Views), but I was unable to reproduce the issue and create an example code. I'm not sure if it is related to this issue.", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-02-27T06:29:44.000+0000", "updated": "2017-02-27T06:29:44.000+0000" }, { "id": "445017", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1344", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-01-07T03:29:19.000+0000", "updated": "2019-01-07T03:29:19.000+0000" }, { "id": "446488", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. Waiting on Jenkins build.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-04T13:38:31.000+0000", "updated": "2019-03-04T13:38:31.000+0000" }, { "id": "446527", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Merged into master.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-03-05T00:36:19.000+0000", "updated": "2019-03-05T00:36:19.000+0000" }, { "id": "446550", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*. Fix verified in SDK Version {{8.1.0.v20190304181927}}\r\n\r\nTest and other information can be found at:\r\nhttps://github.com/appcelerator/titanium_mobile_windows/pull/1344", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-05T15:14:09.000+0000", "updated": "2019-03-05T15:14:09.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }