Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18735] iOS: SearchBar covered section header when using Grouped Table Style

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2015-04-01T17:51:57.000+0000
Affected Version/sRelease 3.5.1
Fix Version/sn/a
ComponentsiOS
Labelscovered, hidden, searchbar, section, tableView
ReporterMarkus Eschenbach
AssigneeIngo Muschenetz
Created2015-03-24T11:48:11.000+0000
Updated2017-03-22T17:55:58.000+0000

Description

Problem description

When adding a searchbar to a tableview with TableViewStyle 'GROUPED' the first section is covered by the searchbar. If the searchbar get the focus the first section is completely hidden when the data is modified.

Steps to reproduce

1. Create a tableview with sections and a searchbar 2. add add focus eventlistener to the searchbar 3. modify data and set it to the table to force the table refresh

Test case

(function() {
	Ti.UI.backgroundColor = 'white';

	var win = Ti.UI.createWindow({backgroundColor : '#ffffff'});
	var table;
	var view = Titanium.UI.createView({backgroundColor : "#FFFEEE",top : 0});
	
	var section1 = Titanium.UI.createTableViewSection();
	var section2 = Titanium.UI.createTableViewSection();

    section1.headerView = Ti.UI.createView({height: 1});       
    section2.headerView = Ti.UI.createView({height: 1});     
    
    section1.footerView = Ti.UI.createView({height: 1});  
    section2.footerView = Ti.UI.createView({height: 1});
    
	section1.add(Ti.UI.createTableViewRow({title : "Test Row 1"}));
	section2.add(Ti.UI.createTableViewRow({title : "Test Row 2"}));
		
	var search = Titanium.UI.createSearchBar();
	
	search.addEventListener('focus', function(e){
		table.setData(table.data);
	});
	
	table = Ti.UI.createTableView({
		search : search,
		data : [section1,section2],
		style : Ti.UI.iPhone.TableViewStyle.GROUPED
	});

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

Attachments

FileDateSize
search-bar-covered-section-header.png2015-03-24T11:48:11.000+000035952
search-bar-covered-section-header-focus.png2015-03-24T11:48:11.000+000036175

Comments

  1. Vishal Duggal 2015-04-01

    See linked issue TIMOB-18736
  2. Lee Morris 2017-03-22

    Closing ticket as the issue will not fix and with reference to the above comments. Linked issue is above and that has since been closed.

JSON Source