{ "id": "99709", "key": "TIMOB-10585", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "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": "2013-03-27T08:55:56.000+0000", "created": "2012-08-24T01:02:21.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "qe-ios082012" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [], "assignee": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T18:47:03.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": "The SearchBar on a tableview does not span the complete width of tableview in portrait mode after orientation change. This happens when index in the table are mentioned.\r\n\r\nThis is not a regression. The issue occurs as far as 2.0.1\r\n\r\nSteps to Reproduce:\r\n1. Create application with code below and launch the application. A tableview is shown with SearchBar at the top. The SearchBar spans the complete width.\r\n2. Orient the device to landscape mode and then to portrait mode\r\n\r\nActual: The width of the SearchBar does not span the complete width\r\n\r\nExpected: The SearchBar should span the width of the tableview even after orientation change.\r\n\r\n{code}\r\nvar _window=Ti.UI.createWindow();\r\n_window.backgroundColor='black';\r\n \r\nvar data = [{\r\n\t\t\ttitle : 'Alan (click to change index)',\r\n\t\t\thasChild : true,\r\n\t\t\theader : 'A'\r\n\t\t}, {\r\n\t\t\ttitle : 'Alice',\r\n\t\t\thasDetail : true\r\n\t\t}];\r\n\t\t\r\n\t\tvar search = Titanium.UI.createSearchBar();\r\n\r\n\t\t// create table view\r\n\t\tvar tableview = Titanium.UI.createTableView({\r\n\t\t\tdata : data,\r\n\t\t\tsearch : search,\r\n\t\t\tfilterAttribute : 'title'\r\n\t\t});\r\n\t\t\r\n\t\t// set filters\r\n\t\tvar index = [{\r\n\t\t\ttitle : 'A',\r\n\t\t\tindex : 0\r\n\t\t}];\r\n\t\ttableview.index = index;\r\n\t\t_window.add(tableview);\r\n\t\t\r\n_window.open();\r\n\r\n{code}\r\n ", "attachment": [], "flagged": false, "summary": "iOS: TableView: SearchBar does not span complete width after orientation change when tableview has indexes", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.2.201208201549\r\nTitanium SDK: 2.1.2.v20120821160113\r\nDevice: iPad3(v5.1), iPad simulator (v5.1)", "comment": { "comments": [ { "id": "244272", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does not reproduces \r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\niOS iPhone Simulator: iOS SDK version: 5.1,6.0\r\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-27T08:55:56.000+0000", "updated": "2013-06-20T13:26:46.000+0000" }, { "id": "412806", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T18:47:03.000+0000", "updated": "2017-03-16T18:47:03.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }