{ "id": "175077", "key": "TIMOB-27935", "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": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-11-20T15:09:21.000+0000", "created": "2020-06-04T13:23:58.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "21018", "name": "Release 9.0.2", "archived": false, "released": true, "releaseDate": "2020-05-19" }, { "id": "20950", "name": "Release 9.1.0", "archived": false, "released": true, "releaseDate": "2020-08-25" } ], "issuelinks": [ { "id": "58519", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "175262", "key": "TIMOB-28001", "fields": { "summary": "iOS: Setting TableView row layout to \"horizontal\" or \"vertical\" crashes as of 9.1.0", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "58747", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "175556", "key": "TIMOB-28148", "fields": { "summary": "iOS: app crashes when updating tableview", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-11-20T15:09:21.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": "When trying to get the {{rect.height}} the value does not change even through the tableViewRow height is increasing/changing. On the Android side this is working fine and the value is returned. \r\n\r\n*Test Case:*\r\n{code:java}\r\nwin = Ti.UI.createWindow({\r\nbackgroundColor: '#AAAAFF',\r\nlayout: 'vertical'\r\n});\r\n\r\nvar top = Ti.UI.createView({\r\nbackgroundColor: '#FFAAAA',\r\nlayout: 'horizontal',\r\nheight: Ti.UI.SIZE,\r\nwidth: Ti.UI.FILL\r\n});\r\n\r\nvar btnPlus = Ti.UI.createButton({title: '+', top: 50, color: 'white', borderWidth:2 });\r\nbtnPlus.addEventListener('click', function() {\r\nconsole.log('plus click');\r\nview.height += 50;\r\n});\r\n\r\nvar btnMinus = Ti.UI.createButton({title: '-', top: 50, color: 'white', borderWidth:2 });\r\nbtnMinus.addEventListener('click', function() {\r\nconsole.log('minus click');\r\nview.height -= 50;\r\n});\r\n\r\nvar label = Ti.UI.createLabel();\r\n\r\nvar tableView = Ti.UI.createTableView();\r\n\r\nvar row = Ti.UI.createTableViewRow({\r\nheight: Ti.UI.SIZE,\r\nwidth: Ti.UI.FILL\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\nheight: 150,\r\nbackgroundColor: 'blue'\r\n});\r\n\r\nrow.add(view);\r\ntableView.setData([ row ]);\r\ntableView.addEventListener('postlayout', function onPostLayout() {\r\nconsole.log('postlayout', row.rect.height, view.rect.height);\r\nlabel.text = [row.rect.height, view.rect.height].join(' \\| ');\r\n});\r\n\r\ntop.add(btnPlus);\r\ntop.add(btnMinus);\r\ntop.add(label);\r\n\r\nwin.add(top);\r\nwin.add(tableView);\r\nwin.open();\r\n{code}\r\n\r\n*Test Steps:*\r\n# Create a new application with the code above\r\n# Run the application\r\n# Click on the {{Minus}} and {{Plus}} buttons\r\n# Notice label does not change with the correct the values (even though height of the tableViewRow changes)", "attachment": [], "flagged": false, "summary": "iOS: TableViewRow does not return getRect methods ", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacOS Catalina: 10.15.5 Beta\r\nXcode: 11.4\r\nJava Version: 1.8.0_131\r\nAndroid NDK: 21.1.6273396-beta2\r\nNode.js: 10.16.3\r\n\"\"NPM\":\"5.0.0-1\",\"CLI\":\"8.0.0-master.10\"\"\r\niphon 8 (13.4)", "closedSprints": [ { "id": 1209, "state": "closed", "name": "2020 Sprint 22", "startDate": "2020-10-27T02:33:00.000Z", "endDate": "2020-11-07T02:33:00.000Z", "completeDate": "2020-11-06T17:45:42.610Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "455657", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/11758", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-06-05T19:45:26.000+0000", "updated": "2020-06-05T19:45:26.000+0000" }, { "id": "455750", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-06-11T01:01:45.000+0000", "updated": "2020-06-11T01:01:45.000+0000" }, { "id": "456272", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nMac OS: 10.15.4\r\nSDK: 9.1.0.v20200727104531\r\nAppc CLI: 8.1.0-master.7\r\nJDK: 11.0.4\r\nNode: 10.17.0\r\nStudio: 6.0.0.202005141803\r\nXcode: 12.0 beta\r\nDevice: iOS simulator 14.0 beta, 13.5", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-07-29T20:22:29.000+0000", "updated": "2020-07-29T20:22:29.000+0000" }, { "id": "457065", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is causing regressions. Reverted changes in [PR|https://github.com/appcelerator/titanium_mobile/pull/12128]. Need to look in alternate way to fix it.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-09-28T19:40:53.000+0000", "updated": "2020-09-28T19:40:53.000+0000" }, { "id": "457358", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/12225", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-27T17:38:58.000+0000", "updated": "2020-10-27T17:38:58.000+0000" }, { "id": "457413", "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": "2020-11-03T02:14:52.000+0000", "updated": "2020-11-03T02:14:52.000+0000" }, { "id": "457415", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master, backport to 9_2_X also merged", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-11-03T14:39:07.000+0000", "updated": "2020-11-03T14:39:07.000+0000" }, { "id": "457655", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*. Fix verified in SDK version {{9.3.0.v20201119063936}}.\r\n\r\nTest and other information can be found at:\r\nhttps://github.com/appcelerator/titanium_mobile/pull/12225", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-11-20T15:09:14.000+0000", "updated": "2020-11-20T15:09:14.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }