{ "id": "61973", "key": "TIMOB-1341", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:55:55.000+0000", "created": "2011-04-15T02:49:54.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:55:55.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": "{html}

from customer:

\n

http://helpdesk.appcelerator.net/tickets/2915

\n

code to reproduce - just run app, then scroll to see huge gap.\nif the headerView is visible that display is correct:

\n
\n\n\nvar window = Titanium.UI.createWindow({backgroundColor:'#fff'});\n\n//----------------------------------------------------------------------------------------------------\n\nvar hasRefineSearch = false;\nvar refineSearchParameters = null;\nvar searchFailed = true;\n\nvar isBuy = true;\nvar isGeolocated = false;\nvar locationString = \"UB8\";\nvar geoLocation = \"\";\nvar uniqueID = \"\"\n\n//----------------------------------------------------------------------------------------------------\n\nvar propertiesFrom = 1;\nvar clickForMorePropertiesRow;\nvar numberOfRowsInTable = 0;\nvar foundProperties = 0;\nvar lastRow = null;\nvar tableview;\nvar totalPropertiesFound = 0;\nvar headerView = null;\nvar footerView = null;\n//----------------------------------------------------------------------------------------------------\n//----------------------------------------------------------------------------------------------------\n\n//----------------------------------------------------------------------------------------------------\n//----------------------------------------------------------------------------------------------------\nvar foundPropertiesLabel;\n\nfunction createInfoRow() {\n    headerView = Ti.UI.createView({height:64, width:320, backgroundColor:'#005500'}); \n    var headerViewBackground = Ti.UI.createImageView({height:56, top:0, width:320, backgroundColor:'#330066'}); \n    headerView.add(headerViewBackground);\n    headerView.hide();\n}\n\n\nvar remainingPropertiesLabel;\n\nfunction createClickMoreRow() {\n    footerView = Ti.UI.createView({height:52,width:320, backgroundColor:'#000066'}); \n    var footerViewBackground = Ti.UI.createImageView({height:42, top:10, width:320, backgroundColor:'#550066'}); //\n    footerView.add(footerViewBackground);\n\n    \n    footerView.hide();\n}\n\n//----------------------------------------------------------------------------------------------------\n\nfunction getPropertiesData() {\n            \n    var row = Ti.UI.createTableViewRow({height:78, hasChild:true, backgroundColor:'#660000'}); \n    tableview.appendRow(row);\n}\n\n//----------------------------------------------------------------------------------------------------\n//----------------------------------------------------------------------------------------------------\n\n\nfunction createPropertyTable() {\n    createInfoRow();\n    createClickMoreRow();\n    \n    tableview = Titanium.UI.createTableView({top:0, style:Titanium.UI.iPhone.TableViewStyle.PLAIN, backgroundColor:'transparent', headerView:headerView,footerView:footerView, data:[{title:'row 1'},{title:'row 2'}] });\n    \n    window.add(tableview);\n}\n\n//----------------------------------------------------------------------------------------------------\n//----------------------------------------------------------------------------------------------------\n\ncreatePropertyTable();\n//getPropertiesData();\nwindow.open();\n
{html}", "attachment": [], "flagged": false, "summary": "hiding table view headerView and/or footerView leaves huge gap", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125390", "author": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

this was fixed in 1.4

{html}", "updateAuthor": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:49:54.000+0000", "updated": "2011-04-15T02:49:54.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }