{ "id": "83045", "key": "TIMOB-6871", "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": "14700", "description": "2012 Sprint 25", "name": "2012 Sprint 25", "archived": true, "released": true, "releaseDate": "2012-12-17" }, { "id": "14699", "description": "2012 Sprint 25 Core", "name": "2012 Sprint 25 Core", "archived": true, "released": true, "releaseDate": "2012-12-17" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-12-11T19:19:07.000+0000", "created": "2011-11-23T06:44:54.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:42:58.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": "h2. Problem\r\n\r\nWhen using a tableView with a searchBar in a modal window, the searchBar is obscured by the window title when the device is rotated to landscape. If the tableView is dragged down, the searchBar comes into view, but then springs back under the window title when released.\r\n\r\nAlso the first index, \"0\", is also obscured.\r\n\r\nNote: this problems do not occur for non-modal windows.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nTi.UI.setBackgroundColor('#000');\r\n\r\nvar win1 = Ti.UI.createWindow({ \r\n title: 'win1',\r\n backgroundColor: '#f00'\r\n});\r\n\r\nwin1.open()\r\n\r\nvar win2 = Ti.UI.createWindow({ \r\n title: 'win2',\r\n backgroundColor: '#0f0'\r\n});\r\n\r\nvar searchBar = Ti.UI.createSearchBar();\r\n\r\nvar tableData = [];\r\nvar header = '';\r\nvar index = [];\r\nfor ( var i = 0; i <= 20; i++ ) {\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\ttitle: 'test'\r\n\t});\r\n\tindex.push({\r\n\t\ttitle: i+'',\r\n\t\tindex: i\r\n\t});\r\n\ttableData.push(row);\r\n}\r\n\r\nvar table = Ti.UI.createTableView({\r\n\tsearch:searchBar,\r\n\tdata:tableData,\r\n\tindex:index\r\n});\r\n\r\nwin2.add(table);\r\n\r\nwin2.modal = true; //toggle this to introduce problem\r\nwin2.open();\r\n\r\n{code}\r\n", "attachment": [ { "id": "24306", "filename": "landscape.png", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2011-11-23T06:44:54.000+0000", "size": 171744, "mimeType": "image/png" }, { "id": "24305", "filename": "portrait.png", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2011-11-23T06:44:54.000+0000", "size": 184436, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: UI - tableView searchBar obscured by window title after rotating modal window to landscape", "creator": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "subtasks": [], "reporter": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "environment": "* Titanium SDK version: 1.7.5 and 1.8.0.1 (official releases)\r\n* Platform & version: iOS 4.3/5\r\n* Device Details: iPad simulator / device\r\n* Host Operating System: Mac OS X 10.7.2\r\n* Titanium Studio version: 1.0.6.201110251616", "comment": { "comments": [ { "id": "177221", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Sindre\r\n\r\nThank you for raising this - I have reproduced the issue on my system.\r\n\r\nPlease note the changes I have made, particularly in reducing the code to its bare minimum.\r\n\r\nI will escalate this to the main project now.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-26T17:00:21.000+0000", "updated": "2011-12-26T17:00:21.000+0000" }, { "id": "230882", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cannot reproduce with 3.0.0 build on iPad simulators (all versions)", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-11T19:19:07.000+0000", "updated": "2012-12-11T19:19:07.000+0000" }, { "id": "234325", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment used for verification -\r\nTitanium SDK: 3.0.0.GA\r\nTitanium SDK: 3.1.0.v20130108153753\r\nTitanium  Studio: 3.0.1.201212181159\r\n\r\nSince the search bar width get shortened of. There is separate bug for that(TIMOB-10585).", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-15T04:12:26.000+0000", "updated": "2013-01-15T04:12:26.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }