{ "id": "175987", "key": "TIMOB-28325", "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": "21191", "name": "Release 9.3.2", "archived": false, "released": true, "releaseDate": "2021-02-11" }, { "id": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-02-04T15:47:27.000+0000", "created": "2021-01-21T12:27:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "listview" ], "versions": [ { "id": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" }, { "id": "21129", "name": "Release 9.2.2", "archived": false, "released": true, "releaseDate": "2020-10-29" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-02-04T15:47:27.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": "h5.Description\r\n\r\nWhen using {{Ti.UI.iOS.TableViewStyle.INSET_GROUPED}} with {{Ti.UI.SIZE}} the ListView row is incorrectly sized leading to all text in the view not being shown\r\n\r\n{code}\r\nconst win = Ti.UI.createWindow();\r\nconst template = {\r\n\tchildTemplates: [\r\n\t\t{\r\n\t\t\ttype: 'Ti.UI.View',\r\n\t\t\tproperties: { layout: 'horizontal', height: Ti.UI.SIZE, backgroundColor: 'blue' },\r\n\t\t\tchildTemplates: [\r\n\t\t\t\t{\r\n\t\t\t\t\ttype: 'Ti.UI.View',\r\n\t\t\t\t\tproperties: { layout: 'vertical', height: Ti.UI.SIZE, backgroundColor: 'yellow', left: 0, width: 120 },\r\n\t\t\t\t\tchildTemplates: [\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttype: 'Ti.UI.Label',\r\n\t\t\t\t\t\t\tbindId: 'startTime',\r\n\t\t\t\t\t\t\tproperties: { color: 'green', textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER }\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttype: 'Ti.UI.Label',\r\n\t\t\t\t\t\t\tbindId: 'endTime',\r\n\t\t\t\t\t\t\tproperties: { color: 'red', textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER }\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\ttype: 'Ti.UI.View',\r\n\t\t\t\t\tproperties: { layout: 'horizontal', height: Ti.UI.SIZE, backgroundColor: 'green', width: Ti.UI.FILL },\r\n\t\t\t\t\tchildTemplates: [\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttype: 'Ti.UI.Label',\r\n\t\t\t\t\t\t\tbindId: 'title',\r\n\t\t\t\t\t\t\tproperties: { left: 5, color: 'red', right: 30 }\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttype: 'Ti.UI.Label',\r\n\t\t\t\t\t\t\tbindId: 'detail',\r\n\t\t\t\t\t\t\tproperties: { right: 0, color: 'purple', font: { fontWeight: 'bold' } }\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]\r\n\t\t\t\t},\r\n\t\t\t]\r\n\t\t}\r\n\t]\r\n};\r\nconst section = Ti.UI.createListSection({\r\n\theaderTitle: 'Example',\r\n\titems: [{\r\n\t\tstartTime: { text: '10:50' },\r\n\t\tendTime: { text: '11:50' },\r\n\t\ttitle: { text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean interdum laoreet augue, scelerisque convallis dui bibendum vel. Nullam lacinia, odio ac placerat rhoncus, turpis ante venenatis nisi, sit amet auctor quam metus sed erat. Aliquam urna justo, pulvinar fermentum egestas ac, posuere non lectus. ' },\r\n\t\tdetail: { text: 'This text should show at the bottom' }\r\n\t}]\r\n});\r\nwin.add(Ti.UI.createListView({\r\n\ttemplates: { 'mytemplate': template },\r\n\tdefaultItemTemplate: 'mytemplate',\r\n\tsections: [section],\r\n\tstyle: Titanium.UI.iOS.TableViewStyle.INSET_GROUPED\r\n}));\r\nwin.open(); \r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Add the code above to an existing app.js\r\n2. Build to an iOS device or simulator\r\n\r\nh5.Actual\r\n\r\n{{This text should show at the bottom}} is not visible when style is Titanium.UI.iOS.TableViewStyle.INSET_GROUPED\r\n\r\nh5.Expected\r\n\r\n{{This text should show at the bottom}} should be visible", "attachment": [], "flagged": false, "summary": "iOS: ListView row is incorrectly sized when using INSET_GROUPED and Ti.UI.SIZE", "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": null, "closedSprints": [ { "id": 1215, "state": "closed", "name": "2021 Sprint 2", "startDate": "2021-01-18T20:36:00.000Z", "endDate": "2021-01-29T20:36:00.000Z", "completeDate": "2021-01-31T17:42:28.052Z", "originBoardId": 114 }, { "id": 1216, "state": "closed", "name": "2021 Sprint 3", "startDate": "2021-02-01T17:42:00.000Z", "endDate": "2021-02-12T17:42:00.000Z", "completeDate": "2021-02-12T22:01:52.235Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "458100", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/12419", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-27T20:49:24.000+0000", "updated": "2021-01-27T20:49:24.000+0000" }, { "id": "458150", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for Jenkins build", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-02-03T20:37:31.000+0000", "updated": "2021-02-03T20:37:31.000+0000" }, { "id": "458155", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "PR merged to master and 9_3_X", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-02-04T15:47:21.000+0000", "updated": "2021-02-04T15:47:21.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }