{ "id": "97953", "key": "TIMOB-10238", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14126", "description": "Sprint 2012-19 Core", "name": "Sprint 2012-19 Core", "archived": true, "released": true, "releaseDate": "2012-09-24" }, { "id": "14271", "description": "2012 Sprint 19", "name": "2012 Sprint 19", "archived": true, "released": true, "releaseDate": "2012-09-24" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-19T14:46:41.000+0000", "created": "2012-07-25T02:35:41.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "core", "module_tableview", "qe-testadded" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [ { "id": "20653", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "100174", "key": "TIMOB-10712", "fields": { "summary": "Android: label 'opacity' property won't change for TableViewRows outside the visible screen on touch event", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-07-12T07:13:54.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": "h3. Problem description\r\nrow \"index\" value it's wrong when using tableViews, with Ti.UI.SIZE height property set, containing complex rows (rows that contain other components) with \"className\" property set.\r\n\r\n\r\nh3. Steps to reproduce\r\nRun the sample code:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: \"#000\", navBarHidden: true, layout: 'vertical', fullscreen: true });\r\n\r\nvar table = Ti.UI.createTableView({\r\n\theight: Ti.UI.SIZE\r\n});\r\n\r\nvar data = [], row;\r\n\r\nfor (var i = 0; i < 10; ++i) {\r\n\t\r\n\trow = Ti.UI.createTableViewRow({ height: 75, className: 'RowClass' });\r\n\trow.add(Ti.UI.createLabel({ text: 'Row ' + i, left: 10, height: Ti.UI.FILL, width: Ti.UI.FILL }));\r\n\t\r\n\tdata[i] = row;\r\n}\r\n\r\ntable.setData(data);\r\n\r\ntable.addEventListener('click', function(e) {\r\n\talert('Index: ' + e.index);\r\n});\r\n\r\n\r\nwin.add(table);\r\n\r\nwin.open();\r\n{code}\r\n\r\n\r\nClick on any row except the last one. You should get alert dialog saying that index is 9. After first click example usually works fine (only first click generates wrong index), but sometimes it does not work (it seems that issue is random and sometimes index is 9 and sometimes index is the index of the row that was clicked). The only reliable information is that first click never generates right index.\r\n\r\nNot specifying 'height' value, setting it to 'auto' or if \"className\" property is commented out, everything works fine.", "attachment": [], "flagged": false, "summary": "Android: Wrong row index when using TableView with Ti.UI.SIZE and specifying row className", "creator": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "Titanium SDK version: 2.1.1 GA\r\nAndroid 4.0.3\r\nThinkpad Tablet and Nexus Galaxy", "comment": { "comments": [ { "id": "210559", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Have tested this bug and is valid", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-30T14:38:56.000+0000", "updated": "2012-07-30T14:38:56.000+0000" }, { "id": "217847", "author": { "name": "brianknorr", "key": "brianknorr", "displayName": "Brian Knorr", "active": true, "timeZone": "America/Chicago" }, "body": "Please ensure that when this is considered fixed, that it actually does fix the duplicate issue TIMOB-10712.\r\n\r\nThanks,\r\n\r\nBrian", "updateAuthor": { "name": "brianknorr", "key": "brianknorr", "displayName": "Brian Knorr", "active": true, "timeZone": "America/Chicago" }, "created": "2012-09-06T12:19:50.000+0000", "updated": "2012-09-06T15:13:32.000+0000" }, { "id": "219473", "author": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull request https://github.com/krowley/titanium_mobile/commit/e0ae2925450452068fd5afca8b2e9f696290155b", "updateAuthor": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-18T10:59:16.000+0000", "updated": "2012-09-18T10:59:16.000+0000" }, { "id": "219845", "author": { "name": "brianknorr", "key": "brianknorr", "displayName": "Brian Knorr", "active": true, "timeZone": "America/Chicago" }, "body": "Can you please confirm that this fixes the duplicate issue TIMOB-10712? If it doesn't this is not a duplicate. Please advise.", "updateAuthor": { "name": "brianknorr", "key": "brianknorr", "displayName": "Brian Knorr", "active": true, "timeZone": "America/Chicago" }, "created": "2012-09-19T15:36:55.000+0000", "updated": "2012-09-19T15:36:55.000+0000" }, { "id": "220378", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Brian, as this fix did not address the issue in 10712 that bug is still open and being addressed. Thanks!", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-24T17:14:27.000+0000", "updated": "2012-09-24T17:14:27.000+0000" }, { "id": "229870", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Tested on: \r\nTitanium Studio, build: 3.0.0.201211301903\r\nTitanium SDK, build: 3.0.0.v20121130200208\r\nDevices: Samsung Galaxy S III (4.0.4)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T18:31:51.000+0000", "updated": "2012-12-04T18:31:51.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }