{ "id": "155312", "key": "TIMOB-20509", "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": [], "resolution": null, "resolutiondate": null, "created": "2016-03-03T11:37:12.000+0000", "priority": null, "labels": [], "versions": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:02.000+0000", "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" } }, "components": [], "description": "h3. Steps to reproduce\r\n{code:javascript}\r\nvar window = Ti.UI.createWindow({\r\n\tbackgroundColor: 'green'\r\n});\r\n\tvar tableView = Ti.UI.createTableView({\r\n\t\tbottom: 50,\r\n\t});\r\n\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\theight: Ti.UI.SIZE,\r\n\t\tbackgroundColor: 'blue',\r\n\t\tlayout: 'vertical'\r\n\t});\r\n\t\r\n\t\tvar someView = Ti.UI.createView({\r\n\t\t\theight: 50,\r\n\t\t\tbackgroundColor: 'purple'\r\n\t\t});\r\n\t\r\n\t\tvar innerContainer = Ti.UI.createView({\r\n\t\t\theight: 50,\r\n\t\t\tbackgroundColor: 'yellow',\r\n\t\t\tisVisible: false\r\n\t\t});\r\n\t\t\r\n\t\t\t\r\n\t\t \r\n\t\t\r\n\t\trow.add(someView); \r\n\t\trow.add(innerContainer);\r\n\t\t\r\n\t\t\r\n\t\ttableView.appendRow(row);\r\n\t\t\r\n\tvar button = Ti.UI.createView({\r\n\t\theight: 50,\r\n\t\twidth: 50,\r\n\t\tbottom: 0,\r\n\t\tbackgroundColor: 'red'\r\n\t});\t\r\n\r\n\twindow.add(tableView);\r\n\twindow.add(button);\r\n\r\n\tbutton.addEventListener('click', function() {\r\n\r\n\t\tif(innerContainer.isVisible) {\r\n\t\t\tinnerContainer.height = 50;\r\n\t\t} else {\r\n\r\n\t\t\tinnerContainer.height = 100;\r\n\t\t};\r\n\t\t\r\n\t\tinnerContainer.isVisible = !innerContainer.isVisible;\r\n\t\t\r\n\t});\r\n \r\nwindow.open();\r\n{code}\r\n\r\nh3. Actual result:\r\nTableViewRow does not update it's height when children changes height. It does change height if children is removed and added again.\r\n{code:javascript}\r\nbutton.addEventListener('click', function() {\r\n\r\n\t\tif(innerContainer.isVisible) {\r\n\t\t\tinnerContainer.height = 50;\t\t\t\r\n\t\t} else {\r\n\r\n\t\t\tinnerContainer.height = 100;\r\n\t\t};\r\n\t\t\r\n\t\trow.remove(innerContainer);\r\n\t\trow.add(innerContainer);\r\n\t\t\r\n\t\tinnerContainer.isVisible = !innerContainer.isVisible;\r\n\t\t\r\n\t});\r\n{code}\r\n\r\n\r\nh3. Expected result:\r\nRemoving and adding again inner view is not always possible and may be resource demanding.\r\nTableViewRow with height Ti.UI.SIZE should update its height if children changes height.", "attachment": [], "flagged": false, "summary": "TableViewRow with height: Ti.UI.SIZE does not update it height on children height change", "creator": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacOS,\r\nGenyMotion Emulator (Google Nexus 5 - Android 5.1.0.)\r\nSDK 5.1.1GA", "comment": { "comments": [], "maxResults": 1, "total": 1, "startAt": 0 } } }