Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3155] iOS - tableView index animates out of searchBar focus

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-03-25T08:38:24.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterSindre Sorhus
AssigneeMauro Parra-Miranda
Created2012-02-07T07:58:09.000+0000
Updated2016-03-08T07:48:13.000+0000

Description

Problem

I have a tableView with an index on the right side. When I blur the searchBar the index items spreads out in an animation.

Expected Behavior

When I blur the searchBar the index should remain static, just like in the built-in Contacts app.

Steps to reproduce

- Run the testcase. - Click on Cancel. - See the index animating.

Test case

var win = Titanium.UI.createWindow();
var searchBar = Ti.UI.createSearchBar();
var indexData = [];

for ( var i = 0; i <= 20; i++ ) {
	indexData.push({
		index: i,
		title: i + ''
	});
}

var table = Ti.UI.createTableView({
	search: searchBar,
	index: indexData
});

win.add(table);
win.open();

searchBar.focus();

Comments

  1. Shak Hossain 2012-03-25

    Please test the latest build from http://builds.appcelerator.com.s3.amazonaws.com/index.html It has been resolved. Please update if you have any issues.
  2. Shak Hossain 2012-03-25

    With 2.0, the issue is not reproducible.

JSON Source