{ "id": "111947", "key": "TIMOB-13535", "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": "15486", "description": "2013 Sprint 10 API", "name": "2013 Sprint 10 API", "archived": true, "released": true, "releaseDate": "2013-05-20" }, { "id": "15108", "description": "2013 Sprint 10", "name": "2013 Sprint 10", "archived": true, "released": true, "releaseDate": "2013-05-20" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-05-15T21:11:21.000+0000", "created": "2013-03-29T20:15:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_animation", "qe-testadded" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2014-06-19T12:43:32.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": "2. Problem\r\n\r\nneither getMinRowHeight or setMinRowHeight seem to be defined for the android. Get the following error when call these method on a tableView\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar table = Ti.UI.createTableView({})\r\ntry {\r\n\ttable.getMinRowHeight();\r\n} catch (e) {\r\n\tTi.API.error('getMinRowHeight error:' + e)\r\n}\r\ntry {\r\n\ttable.setMinRowHeight(10);\r\n} catch (e) {\r\n\tTi.API.error('setMinRowHeight error:' + e)\r\n}\r\n{code}\r\n\r\nh2. Logs\r\n\r\n{code:lang=none|title=console}\r\n getMinRowHeight error:TypeError: Object # has no method 'getMinRowHeight'\r\n setMinRowHeight error:TypeError: Object # has no method 'setMinRowHeight'\r\n\r\n{code}\r\n\r\nh2. Discussions\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: TableView getMinRowHeight and setMinRowHeight not defined", "creator": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "android, Titanium 3.0+", "comment": { "comments": [ { "id": "244964", "author": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Milt,\n\nPlease provide a simple test case that demonstrates this issue, Usually a simple app.js will suffice.\nCan you also provide:\n- The Titanium SDK version\n- The Titanium Studio version\n- Android Version\n\n", "updateAuthor": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-01T19:18:46.000+0000", "updated": "2013-04-01T19:18:46.000+0000" }, { "id": "244968", "author": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "body": "happens on android 2.3.6 Samsung charge phone.\nTitanium 3.0+ (doesn't seem to happen with Titanium 2.4+)\n\nTitanium Studio, build: 3.0.2.201302191606\n(c) Copyright 2012-2013 by Appcelerator, Inc. All rights reserved.\n\nBuild: jenkins-titanium-rcp-master-372 (origin/master)\nDate: 19 February 2013, 16:09:49\n\n\nDon't you guys have any QA? I gave a simple explaination to illustrate this issue. I don't have time to create a small projects. All you need to do is create a Tableview and execute the methods against it and it will give you the error I showed.", "updateAuthor": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-01T19:43:42.000+0000", "updated": "2013-04-01T19:43:42.000+0000" }, { "id": "244987", "author": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Milt,\n\nPlease see this guide for how to properly submit a bug report.\nhttps://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report", "updateAuthor": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-01T20:48:43.000+0000", "updated": "2013-04-01T20:48:43.000+0000" }, { "id": "247299", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed with Samsung Galaxy S2 Android 2.3.6, Ti SDK 3.0.2 GA and latest 3.1 CI.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-12T17:26:27.000+0000", "updated": "2013-04-12T17:26:27.000+0000" }, { "id": "252090", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Expose minRowHeight as a property accessor and update view when the property changes.\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4271", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-05-15T17:56:12.000+0000", "updated": "2013-05-15T17:56:12.000+0000" }, { "id": "252175", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test Case:\n\n{code}\nTi.UI.backgroundColor = 'white';\nvar win = Ti.UI.createWindow();\n\nvar tableData = [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'} ];\n\nvar table = Ti.UI.createTableView({\n data: tableData\n});\n\ntry {\n table.getMinRowHeight();\n} catch (e) {\n Ti.API.error('getMinRowHeight error:' + e)\n}\ntry {\n table.setMinRowHeight(150);\n} catch (e) {\n Ti.API.error('setMinRowHeight error:' + e)\n}\n\nwin.add(table);\nwin.open();\n{code}\n\nExpected result:\nThe min height should apply\n\nActual Result:\nThe errors appear in the log and the height doesn't apply.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-15T21:07:19.000+0000", "updated": "2013-05-15T21:07:19.000+0000" }, { "id": "274777", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with:\r\n\r\nAppc-Studio: 3.2.0.201310100354\r\nSdk:3.2.0.v20131010163242\r\nalloy:1.2.2\r\nnpm:1.3.2\r\ntitanium:3.2.0\r\ntitanium-code-processor:1.0.3\r\nDevice:htc desire(4.1), iPhone5(7.0.2)\r\nXcode: 5", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-11T11:11:21.000+0000", "updated": "2013-10-11T11:11:21.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }