Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6869] iOS: UI - tableView searchBar not correctly resized when rotated from landscape to portrait

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-06-07T17:53:02.000+0000
Affected Version/sRelease 1.7.5
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterSindre Sorhus
AssigneeIngo Muschenetz
Created2011-11-23T06:54:08.000+0000
Updated2017-06-07T17:53:02.000+0000

Description

Problem

TableView searchBar isn't correctly resized when rotated from landscape to portrait, when the tableView has an 'index' (on the right 0-20). See attached screenshots

Test case

Ti.UI.setBackgroundColor('#000');

var tabGroup = Ti.UI.createTabGroup();

var win = Ti.UI.createWindow({  
    title: 'title',
    tabBarHidden: true
});

var tab = Ti.UI.createTab({
    window: win
});
tabGroup.addTab(tab);  
tabGroup.open();

var table = Ti.UI.createTableView({
	search: Ti.UI.createSearchBar()
});

win.add(table);

var fillTableView = function() {
	var tableData = [];
	var header = '';
	var index = [];
	var i = 0;
	for ( var i = 0; i <= 20; i++ ) {
		var row = Ti.UI.createTableViewRow({
			title: 'test'
		});
		index.push({
			title: i+'',
			index: i
		});
		tableData.push( row );
	}
	table.data = tableData;
	table.index = index;
};

fillTableView();

Attachments

FileDateSize
landscape.png2011-11-23T06:54:08.000+0000173537
portrait.png2011-11-23T06:54:08.000+0000184476

Comments

  1. Lee Morris 2017-06-07

    Closing this ticket as the issue cannot be reproduced with the following environment; iPhone 7 (10.2) MacOS 10.11.6 (15G31) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170606103146 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source