Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11724] iOS: search bar's showCancel property does not work when added to tableView.search

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-02-11T22:04:22.000+0000
Affected Version/sRelease 2.1.3, Release 3.1.0
Fix Version/sRelease 3.2.0
ComponentsiOS
Labelsmodule_tableview, parity, qe-closed-3.2.2, qe-testadded, supportTeam
ReporterAmuktha Akkinepally
AssigneeIngo Muschenetz
Created2012-11-09T23:06:12.000+0000
Updated2014-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

FileDateSize
iOS Simulator Screen shot Feb 10, 2014 12.42.38 AM.png2014-02-09T18:43:16.000+00008021

Comments

  1. jithinpv 2013-03-26

    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
  2. Shak Hossain 2014-02-11

    This issue can't be reproduced with TISDK 3.2 or higher. Therefore, marking it as resolved.
  3. Paras Mishra 2014-03-10

    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

JSON Source