{ "id": "86325", "key": "TIMOB-7612", "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": "12097", "description": "", "name": "Sprint 2012-05", "archived": true, "released": true, "releaseDate": "2012-03-11" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-02T16:06:37.000+0000", "created": "2012-02-10T10:42:51.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_tableview", "parity", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "15855", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "64173", "key": "TIMOB-3541", "fields": { "summary": "iOS: Implement Composite Layout Behavior Spec", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-10T06:10:19.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": "Title says it all. Test case follows:\r\n\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff',\r\n layout: 'vertical'\r\n});\r\n\r\nvar tableView = Ti.UI.createTableView({\r\n\t//top: 0,\r\n\theight: '90%',\r\n\twidth: '100%'\r\n});\r\nvar rows = [];\r\nvar row;\r\nfor (var i=0;i<100;i++) {\r\n\trow = Ti.UI.createTableViewRow({\r\n\t\ttitle: 'Row #' + i\r\n\t});\r\n\trows.push(row);\r\n}\r\ntableView.data = rows;\r\n\r\nwin1.add(tableView);\r\n\r\n\r\nvar buttonContainer = Ti.UI.createView({\r\n\t//bottom: 0,\r\n\twidth: '100%',\r\n\theight: '10%',\r\n\tbackgroundColor: '#99f',\r\n\r\n});\r\n\r\nvar bottomButton = Ti.UI.createButton({\r\n\ttitle: \"Scroll to Bottom\",\r\n\twidth: '50%',\r\n\theight: '100%',\r\n\tright: 0\r\n});\r\nvar topButton = Ti.UI.createButton({\r\n\ttitle: \"Scroll to Top\",\r\n\twidth: '50%',\r\n\theight: '100%',\r\n\tleft: 0\r\n});\r\nbuttonContainer.add(topButton);\r\nbuttonContainer.add(bottomButton);\r\nwin1.add(buttonContainer);\r\nwin1.open();\r\ntableView.addEventListener('scrollEnd', function(evt) {\r\n\tTi.API.info(\"Done scrolling.\");\r\n});\r\ntopButton.addEventListener('click', function(evt) {\r\n\tTi.API.info(\"Scrolling to top.\");\r\n\ttableView.scrollToIndex(0);\r\n});\r\nbottomButton.addEventListener('click', function(evt) {\r\n\tTi.API.info(\"Scrolling to bottom.\");\r\n\ttableView.scrollToIndex(99);\r\n});\r\n{code}\r\n\r\nAs written, it displays properly on Android. When run on iOS, the table view is invisible and the buttons are squished up off the top of the screen.\r\n\r\nIf you comment out the {{layout}} property in TableView and uncomment the {{top}} and {{bottom}} properties for the table view and the button container, it runs properly on iOS.", "attachment": [], "flagged": false, "summary": "iOS: TableView doesn't support percentage heights when layout is 'vertical'.", "creator": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "187559", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolved by new composite layout behavior spec", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-20T16:18:10.000+0000", "updated": "2012-03-20T16:18:10.000+0000" }, { "id": "187711", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.0.0.201203202130\r\nTi Mob SDK 2.0.0.v20120321071752 hash r4c936bac\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.0.1\r\n\r\nTable view is visible with vertical layout", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-21T09:43:49.000+0000", "updated": "2012-03-21T09:43:49.000+0000" }, { "id": "189582", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening/closing to add/remove labels", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-02T16:06:23.000+0000", "updated": "2012-04-02T16:06:23.000+0000" }, { "id": "283482", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/5003\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T06:10:19.000+0000", "updated": "2013-12-10T06:10:19.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }