{ "id": "65760", "key": "TIMOB-4244", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "12096", "description": "", "name": "Sprint 2012-04", "archived": true, "released": true, "releaseDate": "2012-02-26" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-17T11:33:41.000+0000", "created": "2011-05-25T06:10:33.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "community", "parity", "qe-port" ], "versions": [], "issuelinks": [ { "id": "15252", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "86634", "key": "TIMOB-7700", "fields": { "summary": "Android: Enable searchBar to animate cancel button", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-17T04:12:41.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": "When a searchBar is NOT attached to a tableView, instead attached to a view on the window, the cancel button isn't animated. Nor does there seem to be a property to enable it. The cancel button IS animated when a searchBar is attached to a tableView.\r\n\r\nOn the Q&A site, there is this:\r\n[http://developer.appcelerator.com/question/67231/searchbar-animate-cancel-button]\r\n\r\nHidayet Dogan, looked at the source and wrote:\r\n\r\n{code:title=iphone/Classes/TiUISearchBar.m (about line 70)}\r\n\r\nChange:\r\n\r\n[search setShowsCancelButton:[TiUtils boolValue:value]];\r\n\r\nto\r\n\r\n[search setShowsCancelButton:[TiUtils boolValue:value] animated:YES];\r\n{code}\r\n\r\nCould be a configurable option, I suppose, but having it match the tableView searchBar would probably make sense. The latter is not configurable.", "attachment": [], "flagged": false, "summary": "iOS: Enable searchBar to animate cancel button", "creator": { "name": "philoye", "key": "philoye", "displayName": "Phil Oye", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "philoye", "key": "philoye", "displayName": "Phil Oye", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* iOS SDK: 4.3.2 (8H7)\r\n* Titanium 1.7.0 (presumably RC1)\r\n* Titanium Studio, build: 1.0.0.201105271818", "comment": { "comments": [ { "id": "134437", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "In order for us to progress this ticket, please explicitly state your environment, ie your iOS SDK and Titanium versions. Thanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-05-30T03:40:07.000+0000", "updated": "2011-05-30T03:40:07.000+0000" }, { "id": "134443", "author": { "name": "philoye", "key": "philoye", "displayName": "Phil Oye", "active": true, "timeZone": "America/Los_Angeles" }, "body": "iOS SDK: 4.3.2 (8H7)\nTitanium 1.7.0 (presumably RC1)\nTitanium Studio, build: 1.0.0.201105271818", "updateAuthor": { "name": "philoye", "key": "philoye", "displayName": "Phil Oye", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-30T04:21:36.000+0000", "updated": "2011-05-30T04:21:36.000+0000" }, { "id": "181440", "author": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "body": "I made a pull request for it before 1.8 release. I also added option for it named \"cancelAnimated\". Documentation was also included. See the commit here: https://github.com/hdogan/titanium_mobile/commit/449476f042b62a221ac048795efcd6a871f7bf5d\r\n\r\nand the pull request:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/562\r\n\r\nBut they haven't accepted it yet. I'll probably implement it using latest SDK (ie, 1.8) and attach pull request with this issue ID. They maybe notice the request at this time.", "updateAuthor": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2012-02-02T03:20:15.000+0000", "updated": "2012-02-02T03:22:29.000+0000" }, { "id": "181451", "author": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Updated pull request with latest master branch (including documentation changes).\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/1329", "updateAuthor": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2012-02-02T06:32:39.000+0000", "updated": "2012-02-02T06:32:39.000+0000" }, { "id": "181516", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hidayet - Thanks for your pull request. We will review it in next few days and get back to you if we have questions.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-02T13:38:32.000+0000", "updated": "2012-02-02T13:38:32.000+0000" }, { "id": "183348", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Signed CLA is in place.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-15T18:03:34.000+0000", "updated": "2012-02-15T18:03:34.000+0000" }, { "id": "183359", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To keep with the pattern of optional animated arguments in setters, I do want to have the following design pattern. The pull request will be up shortly, but Hidayet deserves full credit.\r\n\r\n{code}\r\n\r\nvar win=Ti.UI.createWindow({});\r\nwin.open();\r\n\r\nvar searchy = Ti.UI.createSearchBar({top:0,height:44});\r\nwin.add(searchy);\r\nvar showHide = false;\r\n\r\nvar button1 = Ti.UI.createButton({top:60,height:40,width:220,title:'Toggle cancel animated'});\r\nvar button2 = Ti.UI.createButton({top:120,height:40,width:220,title:'Toggle cancel plain'});\r\nwin.add(button1);\r\nwin.add(button2);\r\n\r\nbutton1.addEventListener('click',function(){\r\n\tshowHide = !showHide;\r\n\tsearchy.setShowCancel(showHide,{animated:true});\r\n});\r\n\r\nbutton2.addEventListener('click',function(){\r\n\tshowHide = !showHide;\r\n\tsearchy.setShowCancel(showHide,{animated:false});\r\n});\r\n\r\n{code}\r\n\r\n", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-15T18:33:39.000+0000", "updated": "2012-02-15T18:33:39.000+0000" }, { "id": "183360", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Blain - Please make sure that we have this feature available on both iOS and Android platforms. ", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-15T22:43:31.000+0000", "updated": "2012-02-15T22:43:31.000+0000" }, { "id": "183452", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sabil - You should resolve this bug and open another bug for Android.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-16T14:27:51.000+0000", "updated": "2012-02-16T14:27:51.000+0000" }, { "id": "183622", "author": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "body": "I highly think that iOS and Android SDKs should be splitted. iOS features which does not supported by Android platform is totally pain for future Titanium SDK about supporting platform features. Ti.iOS, Ti.iPhone and Ti.iPad namespaces is not a solution.\r\n\r\nBy the way Blain's pull request seems already pushed to master branch, I think this issue can be closed.", "updateAuthor": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2012-02-17T09:01:03.000+0000", "updated": "2012-02-17T09:01:03.000+0000" }, { "id": "214940", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment used for verification -\r\nTested with Titanium SDK: 2.2.0.v20120816212512\r\nTested with Titanium  Studio: 2.1.1.201207271312\r\nDevice - iOS 5.1 simulator\r\nMachine OS - MAC 10.8", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-17T04:12:41.000+0000", "updated": "2012-08-17T04:12:41.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }