[TIMOB-10585] iOS: TableView: SearchBar does not span complete width after orientation change when tableview has indexes
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-03-27T08:55:56.000+0000 |
Affected Version/s | Release 2.1.2 |
Fix Version/s | Release 3.0.2 |
Components | iOS |
Labels | api, qe-ios082012 |
Reporter | Satyam Sekhri |
Assignee | Shameer Jan |
Created | 2012-08-24T01:02:21.000+0000 |
Updated | 2017-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();
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
Closing ticket as the issue cannot be reproduced.