Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10585] iOS: TableView: SearchBar does not span complete width after orientation change when tableview has indexes

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-03-27T08:55:56.000+0000
Affected Version/sRelease 2.1.2
Fix Version/sRelease 3.0.2
ComponentsiOS
Labelsapi, qe-ios082012
ReporterSatyam Sekhri
AssigneeShameer Jan
Created2012-08-24T01:02:21.000+0000
Updated2017-03-16T18:47:03.000+0000

Description

The SearchBar on a tableview does not span the complete width of tableview in portrait mode after orientation change. This happens when index in the table are mentioned. This is not a regression. The issue occurs as far as 2.0.1 Steps to Reproduce: 1. Create application with code below and launch the application. A tableview is shown with SearchBar at the top. The SearchBar spans the complete width. 2. Orient the device to landscape mode and then to portrait mode Actual: The width of the SearchBar does not span the complete width Expected: The SearchBar should span the width of the tableview even after orientation change.
var _window=Ti.UI.createWindow();
_window.backgroundColor='black';
 
var data = [{
			title : 'Alan (click to change index)',
			hasChild : true,
			header : 'A'
		}, {
			title : 'Alice',
			hasDetail : true
		}];
		
		var search = Titanium.UI.createSearchBar();

		// create table view
		var tableview = Titanium.UI.createTableView({
			data : data,
			search : search,
			filterAttribute : 'title'
		});
		
		// set filters
		var index = [{
			title : 'A',
			index : 0
		}];
		tableview.index = index;
		_window.add(tableview);
		
_window.open();

Comments

  1. Shameer Jan 2013-03-27

    Issue does not reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 5.1,6.0
  2. Lee Morris 2017-03-16

    Closing ticket as the issue cannot be reproduced.

JSON Source