{ "id": "104782", "key": "TIMOB-11724", "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": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-02-11T22:04:22.000+0000", "created": "2012-11-09T23:06:12.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_tableview", "parity", "qe-closed-3.2.2", "qe-testadded", "supportTeam" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-03-14T07:39:05.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": "Create a search bar with showCancel property set to false. It works fine and does not show 'cancel' button when it is added to the window. But when the searchBar is added to the table view the showCancel set to false does not work and shows the cancel button. This works fine on android.\r\nh4.Steps to reproduce:\r\n1. Load the below app.js\r\n2. Try adding the search bar directly to window and see the result.\r\n3. Try adding it to the tableView and then see the result.\r\n\r\nExpected Result: Show cancel property should work fine in both cases.\r\n\r\nActual Result: It does not work fine when search bar is added to the tableView.\r\n\r\nh4.app.js:\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({\r\ntitle : 'Tab 1',\r\nbackgroundColor : '#0000'\r\n});\r\n\r\nvar searchBar = Ti.UI.createSearchBar({\r\nbarColor : '#000',\r\nshowCancel : true,\r\ntop : '0dp',\r\nborderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED\r\n});\r\n\r\nvar tableView = Ti.UI.createTableView({\r\nbackgroundColor : 'transparent',\r\nsearch : searchBar,\r\n\r\nfilterAttribute : 'name'\r\n});\r\nwin1.add(tableView);\r\nwin1.open();\r\n{code}\r\n ", "attachment": [ { "id": "45748", "filename": "iOS Simulator Screen shot Feb 10, 2014 12.42.38 AM.png", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2014-02-09T18:43:16.000+0000", "size": 8021, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: search bar's showCancel property does not work when added to tableView.search", "creator": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 6, Ti SDK 2.1.3", "comment": { "comments": [ { "id": "244090", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-26T08:25:37.000+0000", "updated": "2013-03-26T08:25:37.000+0000" }, { "id": "292484", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This issue can't be reproduced with TISDK 3.2 or higher. Therefore, marking it as resolved.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-11T22:04:22.000+0000", "updated": "2014-02-11T22:04:22.000+0000" }, { "id": "296269", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Issue is not reproducible anymore using 3.2.0.GA and above so closing as fixed\r\n\r\nEnvironments used:\r\nTested on:\r\nDevice : iPhone 5s , iOS version : 7.1\r\nDevice : iPad 4, iOS version: 6.1.3\r\nSDK: 3.2.2.v20140221161255\r\nCLI version : 3.2.1\r\nOS : MAC OSX 10.9\r\nAlloy: 1.3.1\r\nACS: 1.0.14\r\nnpm:1.3.2\r\nAppcelerator Studio, build: 3.2.2.201402280732\r\ntitanium-code-processor: 1.1.0\r\nXCode : 5.1 Beta 5", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-10T07:49:03.000+0000", "updated": "2014-03-10T07:49:03.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }