{ "id": "120440", "key": "TIMOB-15342", "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": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-11-26T23:05:04.000+0000", "created": "2013-09-25T11:19:44.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-3.1.4" ], "versions": [ { "id": "15747", "description": "Release 3.1.4", "name": "Release 3.1.4", "archived": true, "released": false } ], "issuelinks": [ { "id": "33402", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "119507", "key": "TIMOB-15049", "fields": { "summary": "Android: TableView row UI is not getting updated if table or row have height set to Ti.UI.SIZE", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-29T22:06:43.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "This is not a regression.\r\n\r\n\r\nValue of Label is not getting updated in tableView when Table's height is set as Ti.UI.SIZE.\r\n{code}\r\nvar _window=Ti.UI.createWindow({backgroundColor:'white'});\r\nvar row = Ti.UI.createTableViewRow({\r\n width: 300,\r\n height: 40\r\n }); \r\n \r\n nameLabel = Titanium.UI.createLabel({\r\n text: 'Value',\r\n left: 10\r\n });\r\n row.add(nameLabel);\r\n \r\n valueLabel1 = Ti.UI.createLabel({\r\n text: 'New Label',\r\n right: 15,\r\n width: 'auto'\r\n });\r\n row.add(valueLabel1);\r\nvar tableView = Ti.UI.createTableView({\r\n backgroundColor: 'white',\r\n top: 0, width: 300,\r\n height: Ti.UI.SIZE,//it works fine if this line is commented.\r\n data: [row]\r\n});\r\n \r\nvar addButton = Ti.UI.createButton({\r\n title: 'Update Label',\r\n width: 200, height: 100\r\n});\r\n i=0;\r\naddButton.addEventListener('click', function() {\r\n Ti.API.info('new value '+i);\r\n valueLabel1.text=i++;\r\n\r\n});\r\n \r\n_window.add(tableView);\r\n_window.add(addButton);\r\n_window.open();\r\n \r\n{code}\r\n\r\nExpected Result:\r\nOn clicking the \"Update Label\" button value of Label \"New Label\" must be getting increment(changed) on every click.\r\n\r\nActual Result:\r\nOn iOS it works fine. \r\nOn Android Value of label does not gets updated.\r\nbut if \"height: Ti.UI.SIZE\" of tableview is commented off. \r\nCode works fine. Label's value gets updated.", "attachment": [], "flagged": false, "summary": "Android: Value of Label not getting updated in tableView when Table height is set as Ti.UI.SIZE", "creator": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on:\r\n\r\nAppcelerator Studio,build: 3.1.3.201309132456\r\nSDK:3.1.4.v20130918151553\r\nCLI version : 3.1.2\r\nOS : MAC OSX 10.8.4\r\nDevice: ipad Mini(v6.0),Nexus7(v4.3)\r\nXCode : 5", "comment": { "comments": [ { "id": "281545", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving as duplicate of linked issue. According to [~vduggal], this is actually a regression against SDK 3.1.1, but the behavior here _should_ be unsupported and is not recommended by Google. The workaround is not not use TI.UI.SIZE. The linked issue is being kept in the backlog. If you feel that the recommended workaround does not fit your needs, please comment on the attached ticket.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-26T23:05:04.000+0000", "updated": "2013-11-26T23:05:04.000+0000" }, { "id": "281617", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Sometimes we have to use \"SIZE\" - for example, if table view is added to scroll view which contains other UI elements beside table view.\r\n\r\n\r\nI managed to make a workaround by adding dummy first row with height 0. But that worked in my specific case and probably won't work for everyone since it has some side effects.\r\n\r\n\r\n\r\n\r\nIMHO, this issue is serious issue and it should be fixed.", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-11-27T10:30:14.000+0000", "updated": "2013-11-27T10:30:14.000+0000" }, { "id": "372951", "author": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Why is this marked as Resolved?\r\n\r\nThis is an obscure solution to a real problem.", "updateAuthor": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-12-15T04:06:41.000+0000", "updated": "2015-12-15T04:06:41.000+0000" }, { "id": "416282", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate, please refer to TIMOB-15049.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-29T22:06:43.000+0000", "updated": "2017-03-29T22:06:43.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }