{ "id": "121560", "key": "TIMOB-16070", "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": null, "resolutiondate": null, "created": "2013-10-23T19:59:40.000+0000", "priority": null, "labels": [ "android", "height", "searchbar", "tableview", "ti.ui.height" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:26.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "TableView behaves like the height property is set to Ti.UI.FILL - even if set to Ti.UI.SIZE when a searchBar is added via the search property. In the screen shot, you can see the result of toggling the search property on or off for the tableView. The table has no data/rows attached. With no search property set, the window background (white) is visible. When toggling it on, the table view with the red background fills the screen.\r\n\r\nInitially posted here: http://developer.appcelerator.com/question/158544/android-searchbar-and-tableview-height-issue-with-tiuisize\r\n\r\n{code:js|title=app.js} \r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'#fff'\r\n});\r\n \r\nvar searchBar = Ti.UI.createSearchBar({\r\n top : 0,\r\n width : Ti.UI.FILL,\r\n height : 43,\r\n barColor : '#FFF',\r\n hintText : 'Search'\r\n});\r\nvar searchTable = Ti.UI.createTableView({\r\n //search : searchBar,\r\n top : 0,\r\n width : Ti.UI.FILL,\r\n height : Ti.UI.SIZE,\r\n backgroundColor: '#ff0000', \r\n});\r\n \r\nwin.add(searchTable);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "43414", "filename": "debug-tableview-searchbar.jpg", "author": { "name": "jwebster", "key": "jwebster", "displayName": "Joe Webster", "active": true, "timeZone": "America/Argentina/Buenos_Aires" }, "created": "2013-10-23T19:59:40.000+0000", "size": 20345, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: TableView and SearchBar used together cause height: Ti.UI.SIZE to be ignored", "creator": { "name": "jwebster", "key": "jwebster", "displayName": "Joe Webster", "active": true, "timeZone": "America/Argentina/Buenos_Aires" }, "subtasks": [], "reporter": { "name": "jwebster", "key": "jwebster", "displayName": "Joe Webster", "active": true, "timeZone": "America/Argentina/Buenos_Aires" }, "environment": "Titanium Studio, build: 3.1.3, 3.2.0\r\nAndroid Emulator, 4.0.3", "comment": { "comments": [ { "id": "284357", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Tested this issue with the code below and was able to reproduce this on Android simulator and device.\r\n\r\nh5. Test Environment\r\n\r\nAndroid SDK: 2.3.3 \r\nTi SDK: 3.1.3 GA and 3.2.0 GA SDK\r\nTi CLI: 3.2.0-cr3\r\n\r\nh5. Test Code\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'#fff',\r\n layout:'vertical'\r\n});\r\n \r\nvar searchBar = Ti.UI.createSearchBar({\r\n top : 0,\r\n width : Ti.UI.FILL,\r\n height : Ti.UI.SIZE,\r\n barColor : '#FFF',\r\n hintText : 'Search'\r\n});\r\n\r\nvar searchTable = Ti.UI.createTableView({\r\n search : searchBar,\r\n top : 10,\r\n width : Ti.UI.FILL,\r\n height : Ti.UI.SIZE,\r\n backgroundColor: '#ff0000', \r\n});\r\nsearchTable.appendRow({title:'table row',backgroundColor:'transparent',color:'#fff'});\r\n \r\nwin.add(searchTable);\r\nwin.open();\r\n\r\n{code}\r\n\r\nh5. Step to reproduce \r\n\r\n# Create a simple code with test code \r\n# Run this in Android Device \r\n# Table View color change when search property is used\r\n\r\n\r\n", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-15T11:36:48.000+0000", "updated": "2013-12-23T01:42:11.000+0000" }, { "id": "285602", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We can reproduce this issue with 3.2.0.GA SDK. Table View height property behaves differently when search property is used. Moving this to engineering for further evaluation.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-23T01:44:43.000+0000", "updated": "2013-12-23T01:44:43.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }