[TIMOB-11724] iOS: search bar's showCancel property does not work when added to tableView.search
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-02-11T22:04:22.000+0000 |
Affected Version/s | Release 2.1.3, Release 3.1.0 |
Fix Version/s | Release 3.2.0 |
Components | iOS |
Labels | module_tableview, parity, qe-closed-3.2.2, qe-testadded, supportTeam |
Reporter | Amuktha Akkinepally |
Assignee | Ingo Muschenetz |
Created | 2012-11-09T23:06:12.000+0000 |
Updated | 2014-03-14T07:39:05.000+0000 |
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.
Steps to reproduce:
1. Load the below app.js 2. Try adding the search bar directly to window and see the result. 3. Try adding it to the tableView and then see the result. Expected Result: Show cancel property should work fine in both cases. Actual Result: It does not work fine when search bar is added to the tableView.app.js:
var win1 = Titanium.UI.createWindow({
title : 'Tab 1',
backgroundColor : '#0000'
});
var searchBar = Ti.UI.createSearchBar({
barColor : '#000',
showCancel : true,
top : '0dp',
borderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED
});
var tableView = Ti.UI.createTableView({
backgroundColor : 'transparent',
search : searchBar,
filterAttribute : 'name'
});
win1.add(tableView);
win1.open();
Attachments
File | Date | Size |
---|---|---|
iOS Simulator Screen shot Feb 10, 2014 12.42.38 AM.png | 2014-02-09T18:43:16.000+0000 | 8021 |
Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) iOS iPhone Simulator: iOS SDK version: 6.0
This issue can't be reproduced with TISDK 3.2 or higher. Therefore, marking it as resolved.
Issue is not reproducible anymore using 3.2.0.GA and above so closing as fixed Environments used: Tested on: Device : iPhone 5s , iOS version : 7.1 Device : iPad 4, iOS version: 6.1.3 SDK: 3.2.2.v20140221161255 CLI version : 3.2.1 OS : MAC OSX 10.9 Alloy: 1.3.1 ACS: 1.0.14 npm:1.3.2 Appcelerator Studio, build: 3.2.2.201402280732 titanium-code-processor: 1.1.0 XCode : 5.1 Beta 5