[TIMOB-379] Search bar: only show cancel button when search input has the focus.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-07-26T18:48:48.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | feature, ios, iphone, searchbar |
Reporter | Robb Shecter |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:28:20.000+0000 |
Updated | 2011-07-26T18:48:48.000+0000 |
Description
Enhancement suggestion: Currently, when cancel is 'true', the cancel button is always displayed. It's disabled if the search input doesn't have the focus.
I believe that a different behavior would create a cleaner UI: Make the cancel button invisible instead of disabled when the search bar doesn't have the focus. On the iPhone platform, the disabled state is still somewhat 'active'-looking. The presence of the disabled button is also unnecessary clutter.
This is very easy to implement - see the new
setShowCancel
method in https://developer.appcelerator.com/question/9091/i-can-not-set-uisearchbarplaceholder"> this thread.This has my vote; I'm currently having to programmatically do it.
Bug Scrub: Invalid. Test Case exists Tested On: TiMOB sdk version: 1.7.2 Studio version: 1.0.2 OS Version: Mac OSX Lion Device tested On - iPhone 4.2.9