Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2818] iOS - The first tableView header is visible in searchBar focus if you hide the navBar

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-03-25T08:36:13.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsios, searchbar, tableview
ReporterSindre Sorhus
AssigneeMauro Parra-Miranda
Created2012-02-07T07:29:53.000+0000
Updated2016-03-08T07:47:44.000+0000

Description

Problem

I have a tableView with a row, header, and index. I've attached focus/blur events to the searchBar, to hide/show the navBar. When the searchBar is focused the first header from the tableView is shown above the black fade.

Expected Behavior

The header should be below the black fade.

Test case

var win = Titanium.UI.createWindow();
win.open({
	modal: true,
	animated: false
});

var searchBar = Ti.UI.createSearchBar();

searchBar.addEventListener('focus', function() {
	win.hideNavBar();
});

searchBar.addEventListener('blur', function() {
	win.showNavBar();
});

var table = Ti.UI.createTableView({
	search: searchBar,
	data: [{"header": "A", "title": "A"}],
	index: [{"index": 0, "title": "A"}]
});

win.add(table);

Attachments

FileDateSize
Screen Shot 2012-02-07 at 16.25.10.png2012-02-07T07:29:53.000+0000129337

Comments

  1. Shak Hossain 2012-03-25

    This is resolved in 2.0. Please update the SDK and test.
  2. Shak Hossain 2012-03-25

    Can't reproduce with the latest CI build.

JSON Source